From f888300c8ea27a6d219a8b51cf3cf1a83d346518 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 16 Jul 2022 14:28:47 -0300 Subject: [PATCH] Add port fwd for faas --- nginx.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nginx.conf b/nginx.conf index d5002ab..f47d6cd 100644 --- a/nginx.conf +++ b/nginx.conf @@ -32,3 +32,19 @@ server { } } +server { + listen 8080; + listen [::]:8080; + + server_name faas.ralsina.me; + + location / { + proxy_pass http://pinky.ralsina.github.beta.tailscale.net:8082; + proxy_set_header X-Forwarded-Host $http_host; + } + error_page 403 404 500 502 503 504 /custom_50x.html; + location = /custom_50x.html { + root /usr/share/nginx/html; + internal; + } +}