From 88ee8791f40d4f5f9272e7b0d859b13f515dc0a8 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 6 Nov 2023 21:18:06 +0000 Subject: Add old proxying headers --- nginx/gallery_remmy_io.sls | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nginx') diff --git a/nginx/gallery_remmy_io.sls b/nginx/gallery_remmy_io.sls index 29b3d27..b1a9135 100644 --- a/nginx/gallery_remmy_io.sls +++ b/nginx/gallery_remmy_io.sls @@ -48,9 +48,18 @@ nginx: - try_files: $uri $uri.html $uri/ =404 + + - location /.well-known/acme-challenge: + - root: /srv/http + - location /: - proxy_http_version: '1.1' - proxy_pass: http://127.0.0.1:8186 + - proxy_set_header: X-Real-IP $remote_addr + - proxy_set_header: X-Forwarded-Proto https + - proxy_set_header: X-Forwarded-Host $host + - proxy_set_header: X-Forwarded-Server $host + - proxy_set_header: X-Forwarded-For $proxy_add_x_forwarded_for gallery-static.remmy.io: enabled: True -- cgit v1.2.3-70-g09d2