merge-requests/2/head
Matthew 2021-06-18 16:37:50 -04:00
parent 0cd37a055c
commit 2a10c4289a
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 27 additions and 1 deletions

View File

@ -1,3 +1,29 @@
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;
}
server { server {
listen 443 ssl http2; listen 443 ssl http2;
listen [::]:443 ssl http2; listen [::]:443 ssl http2;
@ -12,7 +38,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN; proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass https://node3.ins:8001; proxy_pass http://node3.ins:8001;
proxy_read_timeout 90; proxy_read_timeout 90;
} }
} }