-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:usegalaxy-au/galaxy-media-site into dev
- Loading branch information
Showing
9 changed files
with
237 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
deploy/ansible/roles/galaxy_media_site/templates/setup.sh.j2
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Maintenance page | ||
|
||
Show this when the main site is offline for maintenance/outage. | ||
|
||
- Make sure that this directory is symlinked to `/srv/sites/gms-maintenance-site/` | ||
- Move the selected Nginx config to your /etc/nginx/sites-enabled/ to replace | ||
the production nginx config. | ||
- Make sure that the SSL cert paths defined in the nginx config exist on your | ||
server (they should have be created with python-certbot-nginx) - they can be | ||
tarred and copied from the main web server if running this somewhere else | ||
(e.g. infra outage). | ||
- `sudo systemctl nginx restart` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
server { | ||
|
||
listen 80; | ||
|
||
server_name dev-site.gvl.org.au site-maintenance.gvl.org.au; | ||
access_log /var/log/nginx/gms-maintenance.access.log; | ||
error_log /var/log/nginx/gms-maintenance.error.log; | ||
|
||
root /srv/sites/gms-maintenance-site; # Symlink this | ||
|
||
location /static/ { | ||
alias /srv/sites/gms-maintenance-site/static/; | ||
} | ||
|
||
location = / { | ||
try_files /index.html = 404; | ||
} | ||
|
||
location / { | ||
return 302 $scheme://$host; | ||
} | ||
|
||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/dev-site.gvl.org.au/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/dev-site.gvl.org.au/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
|
||
server { | ||
|
||
if ($host = dev-site.gvl.org.au) { | ||
return 301 https://$host$request_uri; | ||
} # managed by Certbot | ||
|
||
listen 80; | ||
server_name dev-site.gvl.org.au; | ||
return 404; # managed by Certbot | ||
|
||
} |
Oops, something went wrong.