From 7bdbff02f174aaf787864f78c617aad86a578eda Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 21 Aug 2024 09:39:12 -0300 Subject: [PATCH] Apuntar proxy a version nueva de nombres --- reverse_proxy/Dockerfile | 4 ++-- reverse_proxy/nginx.conf | 14 +++++--------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/reverse_proxy/Dockerfile b/reverse_proxy/Dockerfile index 4682cfb..b45f4c9 100644 --- a/reverse_proxy/Dockerfile +++ b/reverse_proxy/Dockerfile @@ -1,10 +1,10 @@ -FROM alpine:latest as builder +FROM alpine:latest AS builder WORKDIR /app COPY . ./ # This is where one could build the application code as well. -FROM alpine:latest as tailscale +FROM alpine:latest AS tailscale WORKDIR /app COPY . ./ ENV TSFILE=tailscale_1.68.2_amd64.tgz diff --git a/reverse_proxy/nginx.conf b/reverse_proxy/nginx.conf index e2e949a..a81c252 100644 --- a/reverse_proxy/nginx.conf +++ b/reverse_proxy/nginx.conf @@ -4,6 +4,10 @@ server { server_name faaso-prod.ralsina.me; + if ($request_method = 'OPTIONS' ) { + return 200; + } + location / { proxy_pass http://rocky.tail20c16.ts.net:8888; proxy_set_header X-Forwarded-Host $http_host; @@ -47,6 +51,7 @@ server { server_name faaso.ralsina.me; server_name nicolino.ralsina.me; server_name crycco.ralsina.me; + server_name nombres.ralsina.me; location / { proxy_pass http://pinky.tail20c16.ts.net:8080; @@ -182,12 +187,3 @@ server { server_name covers.ralsina.me; return 301 https://ralsina.me/stories/covers/; } - - -server { - listen 8080; - listen [::]:8080; - - server_name nombres.ralsina.me; - return 301 https://ralsina.me/stories/nombres/; -}