From 433d3b4a2ac511c2ef59c7464b98e16a3277aef9 Mon Sep 17 00:00:00 2001 From: Yax Date: Sat, 10 Jan 2026 16:43:51 +0100 Subject: [PATCH] Remove unused ngix configuration --- nginx/dhparam.pem | 13 ------- nginx/nginx.conf | 92 ----------------------------------------------- 2 files changed, 105 deletions(-) delete mode 100644 nginx/dhparam.pem delete mode 100644 nginx/nginx.conf diff --git a/nginx/dhparam.pem b/nginx/dhparam.pem deleted file mode 100644 index 1a4ab16..0000000 --- a/nginx/dhparam.pem +++ /dev/null @@ -1,13 +0,0 @@ ------BEGIN DH PARAMETERS----- -MIICCAKCAgEArZ2eraHASEwWg51GuvviujRhawl6Vp1f9YTdPFcMoxidRycgvDE/ -aI5CATYqetkos2M0pBJ01YN4bbLtYG98DkUzsRUouL0+65L3BB+ClEFL9CqGZhmk -AivS7WajarSfVpGaCCxVMPviWdX8qfAncGasC34XNZLJAkmMjKhhj1OcFBgoxrfW -AKmyBuTYthd1C/refwHrXjC2vM1l3ts/UJ5sKhyCD0PBxpLMiiRUrqsENMl8lUsW -/qbzzq/kc5Tgo4DRTdsLEUk22YyYGpk1jjK1Yr4elHNUZbaqOZwOESsd1pm0KW93 -/QzTIvS18SLA346DkL8hKwPlQOQRR7HSofXKkMGyDU/wkxqgAivT46Y322GW+Aw9 -WKTGZ8njp/IhureOo7N19PPADFcF0sGap4aUzbu4cpRVucpLUIzYkk2iSTJTRtrO -5QvY7/KBhtBO1a72VSN94mIfI2V+j4d3X+ISqhBB4ABP92FfE1v1ktU3bwEq9PqG -M/jj8whO7Sp2V5zsk/7aCFj88QaSc5/rhIG2Y8ntPBoknr635ZpQ+b2lCxx8bcOs -PxdFX2bHhrxdwhq29n1LacJPKwUceaA0Xd/Xm2xmLjGoZ4qduYnmIhUtg15vY0KC -9jiaxlfaxhNkMcTPhXDUQtLit++NbBHESVFBmSG7R8gcIHwWTiJxxCsCAQI= ------END DH PARAMETERS----- diff --git a/nginx/nginx.conf b/nginx/nginx.conf deleted file mode 100644 index 80167e6..0000000 --- a/nginx/nginx.conf +++ /dev/null @@ -1,92 +0,0 @@ -user nginx; -worker_processes 1; - -events { - worker_connections 1024; -} - -http { - include mime.types; - default_type application/octet-stream; - - sendfile off; - send_timeout 20; - keepalive_timeout 60; - - gzip on; - gzip_static on; - gzip_min_length 512; - gzip_buffers 16 8k; - gzip_http_version 1.1; - gzip_vary on; - gzip_comp_level 6; - gzip_proxied any; - gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js; - gzip_disable "MSIE [1-6]\.(?!.*SV1)"; - - server { - listen 80; - server_name blogduyax.traefik.me; - - location / { - # enforce https - return 301 https://$server_name$request_uri; - } - } - - server { - listen 443 ssl http2; - server_name blogduyax.traefik.me; - - # ========================================= - # // SSL - # ========================================= - - # session settings - ssl_session_timeout 1d; - ssl_session_cache shared:SSL:50m; - ssl_session_tickets off; - ssl_buffer_size 1400; - - # Diffie-Hellman parameter for DHE cipher suites - ssl_dhparam /etc/nginx/dhparam.pem; - - # ssl certs - ssl_certificate /etc/nginx/ssl/fullchain.pem; - ssl_certificate_key /etc/nginx/ssl/privkey.pem; - - # protocols - ssl_protocols TLSv1.2; - ssl_prefer_server_ciphers on; - ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256'; - - # HSTS, remove # from the line below to enable HSTS - #add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; - - # OCSP Stapling - ssl_stapling on; - ssl_stapling_verify on; - - # ========================================= - # SSL // - # ========================================= - - root /usr/share/nginx/html; - index index.html; - add_header Cache-Control "no-cache"; - - location /newcomment { - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $remote_addr; - proxy_pass http://172.17.0.1:8100/newcomment; - } - - location /web { - proxy_pass http://172.17.0.1:8100/web; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - } -}