File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,25 @@ server {
255255 listen 80;
256256 listen 443 ssl;
257257 server_name plugins-analytics.qgis.org;
258+
258259 ssl_certificate /etc/letsencrypt/live/plugins-analytics.qgis.org/fullchain.pem;
259260 ssl_certificate_key /etc/letsencrypt/live/plugins-analytics.qgis.org/privkey.pem;
260- return 301 $scheme://plugins.qgis.org/metabase/public/dashboard/7ecd345f-7321-423d-9844-71e526a454a9;
261+
262+ # Proxy pass to Metabase
263+ 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;
269+ }
270+
271+ # ACME challenge location
272+ location ~ /.well-known/acme-challenge {
273+ root /var/www/webroot;
274+ default_type "text/plain";
275+ allow all;
276+ }
277+
278+ root /var/www/webroot;
261279}
You can’t perform that action at this time.
0 commit comments