aboutsummaryrefslogtreecommitdiff
path: root/overleaf-mods/overleaf-ldap-oauth2/ldap-overleaf-sl/nginx/sharelatex.conf
diff options
context:
space:
mode:
authorAria <me@aria.rip>2023-10-01 17:23:09 +0100
committerAria <me@aria.rip>2023-10-01 17:23:09 +0100
commitb5b9cf7a1f61d004d7d53584d029c19302c63ba0 (patch)
tree49c3022dccf669f9f2b905ddfbd2d16db2d10d84 /overleaf-mods/overleaf-ldap-oauth2/ldap-overleaf-sl/nginx/sharelatex.conf
initial commit
Diffstat (limited to 'overleaf-mods/overleaf-ldap-oauth2/ldap-overleaf-sl/nginx/sharelatex.conf')
-rw-r--r--overleaf-mods/overleaf-ldap-oauth2/ldap-overleaf-sl/nginx/sharelatex.conf66
1 files changed, 66 insertions, 0 deletions
diff --git a/overleaf-mods/overleaf-ldap-oauth2/ldap-overleaf-sl/nginx/sharelatex.conf b/overleaf-mods/overleaf-ldap-oauth2/ldap-overleaf-sl/nginx/sharelatex.conf
new file mode 100644
index 0000000..663a0ec
--- /dev/null
+++ b/overleaf-mods/overleaf-ldap-oauth2/ldap-overleaf-sl/nginx/sharelatex.conf
@@ -0,0 +1,66 @@
+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/;
+ }
+}