diff --git a/ubuntu/nginx/.env b/ubuntu/nginx/.env deleted file mode 100644 index 8b13789..0000000 --- a/ubuntu/nginx/.env +++ /dev/null @@ -1 +0,0 @@ - diff --git a/ubuntu/nginx/compose.yaml b/ubuntu/nginx/compose.yaml deleted file mode 100644 index 8352d13..0000000 --- a/ubuntu/nginx/compose.yaml +++ /dev/null @@ -1,16 +0,0 @@ -services: - nginx: - image: nginx:stable-alpine - container_name: nginx - restart: always - volumes: - - "/root/nginx/key.pem:/certs/nginx_key.pem:ro" - - "/root/nginx/ca.pem:/certs/nginx_certificate.pem:ro" - - "/root/nginx/nginx.conf:/etc/nginx/nginx.conf:ro" - ports: - - "0.0.0.0:443:443" - - "0.0.0.0:80:80" - environment: - NGINX_WORKER_PROCESSES: "4" - NGINX_WORKER_CONNECTIONS: "768" - network_mode: bridge diff --git a/ubuntu/nginx/nginx.conf b/ubuntu/nginx/nginx.conf deleted file mode 100644 index eeaed49..0000000 --- a/ubuntu/nginx/nginx.conf +++ /dev/null @@ -1,32 +0,0 @@ - events {} - http { - server { - listen 80 default_server; - server_name _; - return 301 https://$host$request_uri; - } - server { - listen 443 ssl; - ssl_certificate /certs/nginx_certificate.pem; - ssl_certificate_key /certs/nginx_key.pem; - ssl_protocols TLSv1 TLSv1.1 TLSv1.2; - ssl_prefer_server_ciphers on; - ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; - add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;"; - server_tokens off; - client_max_body_size 50M; - - location / { - proxy_pass http://overleaf.neuro.uni-bremen.de:11001; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_read_timeout 3m; - proxy_send_timeout 3m; - } - } - } -