aboutsummaryrefslogtreecommitdiff
path: root/docker/nginx/nginx.conf
diff options
context:
space:
mode:
authoriCrawl <[email protected]>2020-12-24 20:16:00 +0100
committeriCrawl <[email protected]>2020-12-26 21:00:53 +0100
commit5d2d46d8dca912614d6893a9f3ff30a487e76a77 (patch)
tree7d45769f3c88aa6346483abcaa4370f67fced603 /docker/nginx/nginx.conf
parentMerge pull request #230 from WeebDev/fix/chunk-uploads (diff)
downloadhost.fuwn.me-5d2d46d8dca912614d6893a9f3ff30a487e76a77.tar.xz
host.fuwn.me-5d2d46d8dca912614d6893a9f3ff30a487e76a77.zip
add docker support
Diffstat (limited to 'docker/nginx/nginx.conf')
-rw-r--r--docker/nginx/nginx.conf54
1 files changed, 54 insertions, 0 deletions
diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf
new file mode 100644
index 0000000..a878b9b
--- /dev/null
+++ b/docker/nginx/nginx.conf
@@ -0,0 +1,54 @@
+# Generated by nginxconfig.io
+# https://www.digitalocean.com/community/tools/nginx?domains.0.server.domain=tourneys.naval-base.com&domains.0.server.documentRoot=&domains.0.https.certType=custom&domains.0.php.php=false&domains.0.reverseProxy.reverseProxy=true&domains.0.reverseProxy.proxyPass=http%3A%2F%2F127.0.0.1%3A3001&domains.0.routing.root=false&domains.0.logging.accessLog=true&domains.0.logging.errorLog=true
+
+user www-data;
+pid /run/nginx.pid;
+worker_processes auto;
+worker_rlimit_nofile 65535;
+
+events {
+ multi_accept on;
+ worker_connections 65535;
+}
+
+http {
+ charset utf-8;
+ sendfile on;
+ tcp_nopush on;
+ tcp_nodelay on;
+ server_tokens off;
+ log_not_found off;
+ types_hash_max_size 2048;
+ client_max_body_size 90M;
+ client_body_timeout 600s;
+
+ # MIME
+ include mime.types;
+ default_type application/octet-stream;
+
+ # Logging
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log warn;
+
+ # SSL
+ ssl_session_timeout 1d;
+ ssl_session_cache shared:SSL:10m;
+ ssl_session_tickets off;
+
+ # Diffie-Hellman parameter for DHE ciphersuites
+ # ssl_dhparam /etc/nginx/dhparam.pem;
+
+ # Mozilla Intermediate configuration
+ ssl_protocols TLSv1.2 TLSv1.3;
+ 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;
+
+ # OCSP Stapling
+ ssl_stapling off;
+ ssl_stapling_verify off;
+ resolver 1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4 208.67.222.222 208.67.220.220 valid=60s;
+ resolver_timeout 2s;
+
+ # Load configs
+ include /etc/nginx/conf.d/*.conf;
+ # include /etc/nginx/sites-enabled/*;
+}