Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
redirecting noao to noirlab.edu
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetepete committed Apr 29, 2021
1 parent 6f58d53 commit f175e70
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
6 changes: 3 additions & 3 deletions files/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ http {
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

##
# Virtual Host Configs
Expand Down
6 changes: 3 additions & 3 deletions files/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ http {

# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
gzip_comp_level 6;
gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

##
# Virtual Host Configs
Expand Down
7 changes: 5 additions & 2 deletions files/nginx/sites-enabled/noirlab
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ server {

# Django media
location /media {
alias /opt/mars/marssite/static; # your Django project's media files - amend as required
alias /opt/mars/marssite/static/; # your Django project's media files - amend as required
}

location /static {
alias /opt/mars/marssite/static; # your Django project's static files - amend as required
expires 10d;
sendfile on;
sendfile_max_chunk 1m;
alias /opt/mars/marssite/static/; # your Django project's static files - amend as required
}

location /download/zip {
Expand Down
8 changes: 5 additions & 3 deletions files/nginx/sites-enabled/prod.default
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ upstream app_server {
server unix:/opt/mars/gunicorn.sock fail_timeout=0;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 80;
listen [::]:80;
server_name astroarchive.noao.edu;
return 301 https://$host$request_uri;
return 301 https://astroarchive.noirlab.edu; #https://$host$request_uri;
}

# configuration of the server
Expand All @@ -37,6 +37,8 @@ server {
#server_name .dm.noao.edu; # substitute your machine's IP address or FQDN
charset utf-8;

# Redirect
return 301 https://astroarchive.noirlab.edu;

# max upload size
client_max_body_size 75M; # adjust to taste
Expand Down

0 comments on commit f175e70

Please sign in to comment.