diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2024-06-05 19:35:47 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2024-06-05 19:35:47 +0200 |
commit | aafcdd7fc8d8e732af6b9ad8b32ac2a4e82aa692 (patch) | |
tree | 6f73d1a8fff98d9913c477459bfca38a560458cf | |
parent | 9bd31ca2787e7503068d7a7ce13fe53805a8652c (diff) | |
download | pillar-aafcdd7fc8d8e732af6b9ad8b32ac2a4e82aa692.tar.xz |
Proxy pie-in-the-sky to backend port
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | nginx/pie_in_the_sky_kitchen.sls | 10 |
1 files 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: |