Skip to content

Commit

Permalink
Merge pull request #461 from Xpirix/metabase_servername
Browse files Browse the repository at this point in the history
Add new rule for redirecting metabase
  • Loading branch information
Xpirix authored Sep 6, 2024
2 parents 2318c6b + 65fae0b commit 96e87c4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dockerize/sites-enabled/prod-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ upstream uwsgi {
# Define the rate limit zone: 10 requests per second for each IP address
limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s;

# Redirect requests on analytics.qgis.org over to the feed
# This is just a conveneience in case we ever decide to host
# metabase on its own server.
# Note that we also have a cloudflare trasnform rule in place
# which will redirect users from analytics.qgis.org over to the public dashboard
# https://dash.cloudflare.com/a2cec2d89cc90579a20a30365bedcaf7/qgis.org/rules/transform-rules
server {
listen 80;
listen 443 ssl;
server_name plugins-analytics.qgis.org;
return 301 $scheme://plugins.qgis.org$request_uri;
}

server {
# OTF gzip compression
gzip on;
Expand Down
13 changes: 13 additions & 0 deletions dockerize/sites-enabled/prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ upstream uwsgi {
# Define the rate limit zone: 10 requests per second for each IP address
limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s;

# Redirect requests on analytics.qgis.org over to the feed
# This is just a conveneience in case we ever decide to host
# metabase on its own server.
# Note that we also have a cloudflare trasnform rule in place
# which will redirect users from analytics.qgis.org over to the public dashboard
# https://dash.cloudflare.com/a2cec2d89cc90579a20a30365bedcaf7/qgis.org/rules/transform-rules
server {
listen 80;
listen 443 ssl;
server_name plugins-analytics.qgis.org;
return 301 $scheme://plugins.qgis.org$request_uri;
}

server {
# OTF gzip compression
gzip on;
Expand Down

0 comments on commit 96e87c4

Please sign in to comment.