From 305891cb5d404446846a88760226c38a62a23f8d87b869680e90abd4ad735d2e Mon Sep 17 00:00:00 2001 From: jeekkaaaa Date: Thu, 27 Mar 2025 12:43:58 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20nginx.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..764d701 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,33 @@ +server { + listen 443 ssl; + listen [::]:443 ssl; + #proxy_cache my_cache; + server_name linkwarden.example.com; + # listen 80; + # listen [::]:80; + # allow large file uploads + client_max_body_size 50M; + # Set headers + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + # enable websockets: http://nginx.org/en/docs/http/websocket.html + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_redirect off; + ssl_certificate /etc/nginx/ssl/*.example.com_2048/fullchain.cer; + ssl_certificate_key /etc/nginx/ssl/*.example.com_2048/private.key; + location / { + proxy_pass http://0.0.0.0:3489; + } + location /.well-known/acme-challenge { + proxy_set_header Host $host; + proxy_set_header X-Real_IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr:$remote_port; + proxy_pass http://127.0.0.1:9180; + proxy_cache_key $scheme://$host$uri$is_args$query_string; + proxy_cache_valid 200 10m; + } +} \ No newline at end of file