32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
|
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;
|
||
|
|
||
|
ssl_session_cache builtin:1000 shared:SSL:10m;
|
||
|
ssl_protocols TLSv1.2;
|
||
|
|
||
|
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||
|
|
||
|
ssl_prefer_server_ciphers on;
|
||
|
|
||
|
ssl_stapling on;
|
||
|
ssl_stapling_verify on;
|
||
|
|
||
|
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_log_level 4;
|
||
|
passenger_start_timeout 300;
|
||
|
passenger_enabled on;
|
||
|
rails_env production;
|
||
|
}
|