From da89bf9b4f0c0fa1065a0be860c27f9153796043 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 16 May 2023 12:40:14 -0300 Subject: [PATCH] Add snips --- nginx.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/nginx.conf b/nginx.conf index 95c72d6..2db9f7c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -105,3 +105,21 @@ server { } } + +server { + listen 8080; + listen [::]:8080; + + server_name snips.ralsina.me; + + location / { + proxy_pass http://pinky.ralsina.github.beta.tailscale.net:8091 ; + proxy_set_header X-Forwarded-Host $http_host; + + # WebSocket support + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } +} +