Revert "nginx: добавлен конфиг для news.cloud-copp74.ru, порт web→8080"

This reverts commit 764c446efd.
This commit is contained in:
jze9
2026-05-19 19:08:13 +05:00
parent 764c446efd
commit 00acc59cc4
2 changed files with 1 additions and 38 deletions

View File

@@ -42,7 +42,7 @@ services:
dockerfile: web-react/Dockerfile
restart: unless-stopped
ports:
- "127.0.0.1:8080:80"
- "80:80"
depends_on:
api:
condition: service_healthy

View File

@@ -1,37 +0,0 @@
server {
listen 80;
listen [::]:80;
server_name news.cloud-copp74.ru;
location /.well-known/acme-challenge/ {
root /var/www/html;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name news.cloud-copp74.ru;
ssl_certificate /etc/letsencrypt/live/news.cloud-copp74.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/news.cloud-copp74.ru/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
client_max_body_size 50m;
location / {
proxy_pass http://127.0.0.1:8080;
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_read_timeout 60s;
}
}