diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2024-05-27 00:18:26 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2024-05-27 00:18:26 +0200 |
commit | 9915f7d765109a2da5e41aeab8c7b52b2929e335 (patch) | |
tree | 7ed45970ab11bb0fedcab6b3d2c68f493f26a75e /nginx/gallery_remmy_io.sls | |
parent | 831fb296919d1e6826df83a5424328cb040caaa7 (diff) | |
download | pillar-9915f7d765109a2da5e41aeab8c7b52b2929e335.tar.xz |
Redirect remmy.io to remmy.foo
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'nginx/gallery_remmy_io.sls')
-rw-r--r-- | nginx/gallery_remmy_io.sls | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/nginx/gallery_remmy_io.sls b/nginx/gallery_remmy_io.sls index b1a9135..a723729 100644 --- a/nginx/gallery_remmy_io.sls +++ b/nginx/gallery_remmy_io.sls @@ -13,7 +13,7 @@ nginx: - root: /srv/http - location /: - - return: '301 https://$server_name$request_uri' + - return: '301 https://gallery.remmy.foo$request_uri' - server: - server_name: gallery.remmy.io @@ -53,13 +53,8 @@ nginx: - 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 + - return: '301 https://gallery.remmy.foo$request_uri' + gallery-static.remmy.io: enabled: True @@ -73,7 +68,7 @@ nginx: - root: /srv/http - location /: - - return: '301 https://$server_name$request_uri' + - return: '301 https://gallery-static.remmy.foo$request_uri' - server: @@ -111,6 +106,6 @@ nginx: - root: /srv/http - location /: - - proxy_pass: http://gallery-static.remmy.io.eu-central-1.linodeobjects.com/ + - return: '301 https://gallery-static.remmy.foo$request_uri' # vim: ft=yaml et: |