Skip to content

Commit

Permalink
Add NGINX virtual server to redirect traffic
Browse files Browse the repository at this point in the history
Relates to #13
  • Loading branch information
rgaiacs committed Sep 28, 2023
1 parent 698a396 commit 5d83a78
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions nginx/sites-available/orc2_production
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ upstream grafana {
server 194.95.75.12:30075;
}

# HTTP server to redirect gesis.mybinder.org traffic to SSL/HTTPS notebooks.gesis.org
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name gesis.mybinder.org;
access_log off; # turn off access log
# Tell all requests to port 80 to be 301 (permanently) redirected to HTTPS
return 301 http://notebooks.gesis.org$request_uri;
}

# HTTP server to redirect notebooks.gesis.org 80 traffic to SSL/HTTPS
server {
listen 80;
Expand Down

0 comments on commit 5d83a78

Please sign in to comment.