Skip to content

Commit

Permalink
revert downtime redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
lcjohnso authored Nov 21, 2024
1 parent 742bb57 commit 0f653c6
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions sites/www.zooniverse.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ server {
set $fe_project_host "fe-project.zooniverse.org";

include /etc/nginx/ssl.default.conf;

# DOWNTIME, let the / below catch everything
# include /etc/nginx/project-redirects.conf;
# include /etc/nginx/pfe-redirects.conf;
include /etc/nginx/project-redirects.conf;
include /etc/nginx/pfe-redirects.conf;

server_name www.zooniverse.org;

Expand Down Expand Up @@ -86,27 +84,11 @@ server {
}

# Default to fe-root app
# SITE DISABLED
# location / {
# resolver 1.1.1.1;
# proxy_pass "https://fe-root.zooniverse.org";
# proxy_set_header Host fe-root.zooniverse.org;

# include /etc/nginx/proxy-security-headers.conf;
# }

# DOWNTIME ENABLED V1
# set $status_uri "https://zooniverse-359.freshstatus.io";
# location / {
# # Put the URL in a variable to force re-resolution of the DNS name
# # Otherwise nginx will cache it indefinitely and it'll break if IPs change
# resolver 1.1.1.1;
# proxy_pass $status_uri;
# proxy_set_header Host $host;
# proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
# }
# DOWNTIME ENABLED V2
location / {
return 301 "https://status.zooniverse.org";
resolver 1.1.1.1;
proxy_pass "https://fe-root.zooniverse.org";
proxy_set_header Host fe-root.zooniverse.org;

include /etc/nginx/proxy-security-headers.conf;
}
}

0 comments on commit 0f653c6

Please sign in to comment.