mirror of
https://git.unistra.fr/aius/root/ldap-overleaf-sl.git
synced 2025-05-04 11:45:26 +02:00
66 lines
1.8 KiB
Text
66 lines
1.8 KiB
Text
server {
|
|
listen 80;
|
|
server_name _; # Catch all, see http://nginx.org/en/docs/http/server_names.html
|
|
# location / {
|
|
# return 301 https://$host$request_uri;
|
|
# }
|
|
#}
|
|
#
|
|
#
|
|
#server {
|
|
#
|
|
# listen 443 ssl default_server;
|
|
# listen [::]:443 ssl default_server;
|
|
# server_name _; # Catch all
|
|
|
|
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
|
|
server_tokens off;
|
|
add_header X-Frame-Options SAMEORIGIN;
|
|
add_header X-Content-Type-Options nosniff;
|
|
|
|
set $static_path /var/www/sharelatex/web/public;
|
|
# ssl_certificate /etc/certificate.crt;
|
|
# ssl_certificate_key /etc/key.crt;
|
|
# ssl_certificate /etc/letsencrypt/certs/domain/fullchain.pem;
|
|
# ssl_certificate_key /etc/letsencrypt/certs/domain/privkey.pem;
|
|
# include /etc/nginx/options-ssl-nginx.conf;
|
|
# ssl_dhparam /etc/nginx/ssl-dhparams.pem;
|
|
#
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_read_timeout 3m;
|
|
proxy_send_timeout 3m;
|
|
}
|
|
|
|
location /socket.io {
|
|
proxy_pass http://127.0.0.1:3026;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_read_timeout 3m;
|
|
proxy_send_timeout 3m;
|
|
}
|
|
|
|
location /stylesheets {
|
|
expires 1y;
|
|
root $static_path/;
|
|
}
|
|
|
|
location /minjs {
|
|
expires 1y;
|
|
root $static_path/;
|
|
}
|
|
|
|
location /img {
|
|
expires 1y;
|
|
root $static_path/;
|
|
}
|
|
}
|