Skip to content

Commit 866bb9b

Browse files
authored
Merge pull request #106 from Xpirix/fix_plugins_analytics_certificate
Redirect requests to the Metabase dashboard instead of using proxy pass
2 parents 5a6f1b4 + ebb0e87 commit 866bb9b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

dockerize/sites-enabled/prod-ssl.conf

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,9 @@ server {
259259
ssl_certificate /etc/letsencrypt/live/plugins-analytics.qgis.org/fullchain.pem;
260260
ssl_certificate_key /etc/letsencrypt/live/plugins-analytics.qgis.org/privkey.pem;
261261

262-
# Proxy pass to Metabase
262+
# Redirect to Metabase dashboard
263263
location / {
264-
proxy_pass $scheme://plugins.qgis.org/metabase/public/dashboard/7ecd345f-7321-423d-9844-71e526a454a9;
265-
proxy_set_header Host $host;
266-
proxy_set_header X-Real-IP $remote_addr;
267-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
268-
proxy_set_header X-Forwarded-Proto $scheme;
264+
return 301 https://plugins.qgis.org/metabase/public/dashboard/7ecd345f-7321-423d-9844-71e526a454a9;
269265
}
270266

271267
# ACME challenge location

0 commit comments

Comments
 (0)