removed nginx.conf which is not necessary here
This commit is contained in:
@ -1,45 +0,0 @@
|
|||||||
upstream puma {
|
|
||||||
server unix:///var/www/app/shared/tmp/sockets/puma.sock;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80 default deferred;
|
|
||||||
return 301 https://codeocean.openhpi.de$request_uri;
|
|
||||||
server_name codeocean.openhpi.de;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
client_max_body_size 4G;
|
|
||||||
error_page 500 502 503 504 /500.html;
|
|
||||||
keepalive_timeout 10;
|
|
||||||
listen 443 ssl;
|
|
||||||
root /var/www/app/current/public;
|
|
||||||
server_name codeocean.openhpi.de;
|
|
||||||
try_files $uri @puma;
|
|
||||||
|
|
||||||
ssl_certificate /etc/nginx/ssl/ssl-bundle.crt;
|
|
||||||
ssl_certificate_key /etc/nginx/ssl/server.key;
|
|
||||||
ssl_ciphers HIGH:!ADH:!EXPORT56:RC4+RSA:+MEDIUM;
|
|
||||||
ssl_prefer_server_ciphers on;
|
|
||||||
ssl_protocols SSLv3 TLSv1;
|
|
||||||
ssl_session_timeout 5m;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
access_log /var/www/app/current/log/nginx.access.log;
|
|
||||||
error_log /var/www/app/current/log/nginx.error.log;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_pass http://puma;
|
|
||||||
proxy_read_timeout 900;
|
|
||||||
proxy_redirect off;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_set_header Host $http_host;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ^~ /assets/ {
|
|
||||||
add_header Cache-Control public;
|
|
||||||
expires max;
|
|
||||||
gzip_static on;
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user