change routing for Canvas

merge-requests/2/head
Matthew 2021-06-01 01:13:44 -04:00
parent 77f38e7873
commit 55a5b5e553
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 10 additions and 17 deletions

View File

@ -6,20 +6,13 @@ server {
ssl_certificate /etc/nginx/ssl/org.chain.crt; ssl_certificate /etc/nginx/ssl/org.chain.crt;
ssl_certificate_key /etc/nginx/ssl/org.key.pem; ssl_certificate_key /etc/nginx/ssl/org.key.pem;
location / {
root /opt/canvas/public; proxy_set_header Host $host;
charset utf-8; proxy_set_header X-Real-IP $remote_addr;
include mime.types; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 5000M; proxy_set_header X-Forwarded-Proto $scheme;
default_type application/octet-stream; proxy_set_header X-Frame-Options SAMEORIGIN;
access_log /var/log/nginx/canvas.access.log; proxy_pass http://node3.ins:8001;
error_log /var/log/nginx/canvas.error.log; proxy_read_timeout 90;
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;
} }