From 473f69ed678bed1d5fc821a90914a738b69a565c Mon Sep 17 00:00:00 2001 From: Bastien Date: Sun, 19 Nov 2023 14:27:44 +0100 Subject: [PATCH] nginx.conf: Redirect updates.orgmode.org to tracker.orgmode.org See https://list.orgmode.org/87jzqe0zaj.fsf@localhost --- nginx.conf | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/nginx.conf b/nginx.conf index 1a0c6a81..901f3ddd 100644 --- a/nginx.conf +++ b/nginx.conf @@ -267,15 +267,10 @@ server { access_log off; } - location / { - proxy_redirect off; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_hide_header X-Frame-Options; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://localhost:3001; - } + rewrite ^/feed/updates https://tracker.orgmode.org/index.rss permanent; + rewrite ^/feed/bugs https://tracker.orgmode.org/bugs.rss permanent; + rewrite ^/feed/patches https://tracker.orgmode.org/patches.rss permanent; + rewrite ^/ https://tracker.orgmode.org permanent; listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/updates.orgmode.org/fullchain.pem; # managed by Certbot -- 2.45.2