change routing for Canvas
parent
77f38e7873
commit
55a5b5e553
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue