Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/ops/nginx
diff options
context:
space:
mode:
authorLeitwolf112026-11-09 01:18:34 +0300
committerLeitwolf112026-11-09 01:18:34 +0300
commitc0bafe9050161ea6ca0c49f54897f908ca16ce84 (patch)
tree7496e782c0a82a9ff5ea9b59b85e3607fd7794d6 /ops/nginx
parent66f3cc196a9b91d471a90e021b12630100181c4a (diff)
parent3ac256e69f10a3bb78d394c77d03a88a72261597 (diff)
downloadprogmaweb-security/cloudflare-real-ip.tar.gz
Merge remote-tracking branch 'origin/main' into security/cloudflare-real-ipsecurity/cloudflare-real-ip
Diffstat (limited to 'ops/nginx')
-rw-r--r--ops/nginx/progmaweb.conf50
1 files changed, 2 insertions, 48 deletions
diff --git a/ops/nginx/progmaweb.conf b/ops/nginx/progmaweb.conf
index daa81ef..f752b80 100644
--- a/ops/nginx/progmaweb.conf
+++ b/ops/nginx/progmaweb.conf
@@ -418,9 +418,8 @@ server {
}
}
-# The product catalog (product.progmasoft.com) and the product sites Progmaweb
-# serves itself (ides.progmasoft.com, catch3.progmasoft.com): pages of the
-# Next.js site only.
+# The product catalog (product.progmasoft.com) and the product site Progmaweb
+# serves itself (catch3.progmasoft.com): pages of the Next.js site only.
server {
listen 80;
listen [::]:80;
@@ -469,51 +468,6 @@ server {
server {
listen 80;
listen [::]:80;
- server_name ides.progmasoft.com;
-
- location ^~ /.well-known/acme-challenge/ {
- root /var/lib/letsencrypt;
- default_type text/plain;
- }
-
- location / {
- return 308 https://ides.progmasoft.com$request_uri;
- }
-}
-
-server {
- listen 443 ssl;
- listen [::]:443 ssl;
- http2 on;
- server_name ides.progmasoft.com;
-
- ssl_certificate /etc/letsencrypt/live/progmasoft.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/progmasoft.com/privkey.pem;
- include /etc/letsencrypt/options-ssl-nginx.conf;
-
- client_max_body_size 1m;
-
- add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
- add_header X-Content-Type-Options "nosniff" always;
- add_header X-Frame-Options "DENY" always;
- add_header Referrer-Policy "strict-origin-when-cross-origin" always;
- add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
-
- location / {
- proxy_pass http://127.0.0.1:3010;
- proxy_http_version 1.1;
- proxy_set_header Host $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;
- proxy_set_header X-Forwarded-Host $host;
- proxy_read_timeout 60s;
- }
-}
-
-server {
- listen 80;
- listen [::]:80;
server_name catch3.progmasoft.com;
location ^~ /.well-known/acme-challenge/ {