2021-07-06 01:43:37 -04:00
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name edu.libraryofcode.org;
|
|
|
|
|
|
|
|
ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
2021-10-02 19:53:24 -04:00
|
|
|
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Frame-Options SAMEORIGIN;
|
|
|
|
proxy_pass http://localhost:7560;
|
|
|
|
proxy_read_timeout 90;
|
|
|
|
}
|
2021-07-06 01:43:37 -04:00
|
|
|
}
|
|
|
|
|
2021-05-01 15:13:49 -04:00
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
2021-10-02 19:53:24 -04:00
|
|
|
server_name studio.libraryofcode.org;
|
2021-05-01 15:13:49 -04:00
|
|
|
|
|
|
|
ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
2021-06-01 01:13:44 -04:00
|
|
|
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
2021-05-01 15:13:49 -04:00
|
|
|
|
2021-10-04 16:45:54 -04:00
|
|
|
client_max_body_size 100M;
|
|
|
|
|
2021-06-01 01:13:44 -04:00
|
|
|
location / {
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Frame-Options SAMEORIGIN;
|
2021-10-02 19:53:24 -04:00
|
|
|
proxy_pass http://localhost:7560;
|
2021-06-01 01:13:44 -04:00
|
|
|
proxy_read_timeout 90;
|
|
|
|
}
|
2021-05-01 15:13:49 -04:00
|
|
|
}
|
2021-10-02 19:53:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
#server {
|
|
|
|
# listen 443 ssl http2;
|
|
|
|
# listen [::]:443 ssl http2;
|
|
|
|
# server_name edu.libraryofcode.org;
|
|
|
|
|
|
|
|
# ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
|
|
|
# ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
|
|
|
|
|
|
|
|
|
|
|
# root /opt/canvas/public;
|
|
|
|
# charset utf-8;
|
|
|
|
# include mime.types;
|
|
|
|
# client_max_body_size 5000M;
|
|
|
|
# default_type application/octet-stream;
|
|
|
|
# access_log /var/log/nginx/canvas.access.log;
|
|
|
|
# error_log /var/log/nginx/canvas.error.log;
|
|
|
|
# passenger_ruby /usr/local/bin/ruby2.4;
|
|
|
|
# passenger_load_shell_envvars off;
|
|
|
|
# passenger_min_instances 8;
|
|
|
|
#passenger_log_level 4;
|
|
|
|
# passenger_start_timeout 300;
|
|
|
|
# passenger_enabled on;
|
|
|
|
#passenger_pre_start https://edu.libraryofcode.org/;
|
|
|
|
# rails_env production;
|
|
|
|
#}
|
|
|
|
|