From 49bdf2b17c84bf7cfca80e3b29505d63210ca5d4 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 17 Jul 2024 12:27:34 -0300 Subject: [PATCH 1/2] foo --- reverse_proxy/nginx.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/reverse_proxy/nginx.conf b/reverse_proxy/nginx.conf index bd92ce9..474674f 100644 --- a/reverse_proxy/nginx.conf +++ b/reverse_proxy/nginx.conf @@ -2,6 +2,23 @@ server { listen 8080; listen [::]:8080; + server_name code.ralsina.me; + + location / { + proxy_pass http://mindy.ralsina.github.beta.tailscale.net:8088; + proxy_set_header X-Forwarded-Host $http_host; + proxy_set_header Host $host; + } + error_page 500 502 503 504 /custom_50x.html; + location = /custom_50x.html { + root /usr/share/nginx/html; + internal; + } +} +server { + listen 8080; + listen [::]:8080; + server_name home.ralsina.me; server_name ralsina.me; From 6f318a4dfc26dc302a785e15f1d63fc77304bb5c Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 17 Jul 2024 14:52:44 -0300 Subject: [PATCH 2/2] proxy para ws en code-server --- reverse_proxy/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reverse_proxy/nginx.conf b/reverse_proxy/nginx.conf index 474674f..2d12ffe 100644 --- a/reverse_proxy/nginx.conf +++ b/reverse_proxy/nginx.conf @@ -8,6 +8,9 @@ server { proxy_pass http://mindy.ralsina.github.beta.tailscale.net:8088; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header Host $host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection upgrade; + proxy_set_header Accept-Encoding gzip; } error_page 500 502 503 504 /custom_50x.html; location = /custom_50x.html {