From aafcdd7fc8d8e732af6b9ad8b32ac2a4e82aa692 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 5 Jun 2024 19:35:47 +0200 Subject: Proxy pie-in-the-sky to backend port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nginx/pie_in_the_sky_kitchen.sls | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nginx/pie_in_the_sky_kitchen.sls b/nginx/pie_in_the_sky_kitchen.sls index 28518a2..a7604d6 100644 --- a/nginx/pie_in_the_sky_kitchen.sls +++ b/nginx/pie_in_the_sky_kitchen.sls @@ -55,7 +55,13 @@ nginx: - location /.well-known/acme-challenge: - root: /srv/http - - location ~ \.(js|css|png): - - expires: modified +7d + - location /: + - proxy_http_version: '1.1' + - proxy_pass: http://127.0.0.1:6344 + - 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 # vim: ft=yaml et: -- cgit v1.2.3-70-g09d2