From 9c8d023a56f1785910fb28c2ace80caef3f28c56 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 22 Apr 2023 23:09:21 -0300 Subject: [PATCH] Add code.ralsina.me --- nginx.conf | 68 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 25 deletions(-) diff --git a/nginx.conf b/nginx.conf index 7af6db3..95c72d6 100644 --- a/nginx.conf +++ b/nginx.conf @@ -53,37 +53,55 @@ server { } } -# server { - # listen 8080; - # listen [::]:8080; +server { + listen 8080; + listen [::]:8080; - # server_name hass.ralsina.me; + server_name hass.ralsina.me; - # location / { - # proxy_pass http://pinky.ralsina.github.beta.tailscale.net:8123; - # proxy_set_header X-Forwarded-Host $http_host; + location / { + proxy_pass http://pinky.ralsina.github.beta.tailscale.net:8123; + 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"; - # } -# } + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } +} -# server { - # listen 8080; - # listen [::]:8080; +server { + listen 8080; + listen [::]:8080; - # server_name social.ralsina.me; + server_name social.ralsina.me; - # location / { - # proxy_pass http://pinky.ralsina.github.beta.tailscale.net:3003; - # proxy_set_header X-Forwarded-Host $http_host; + location / { + proxy_pass http://pinky.ralsina.github.beta.tailscale.net:3003; + 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"; - # } -# } + # WebSocket support + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } +} + + +server { + listen 8080; + listen [::]:8080; + + server_name code.ralsina.me; + + location / { + proxy_pass http://salma.ralsina.github.beta.tailscale.net:8080; + 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"; + } +}