# aegisone.ru / www.aegisone.ru -> PHP frontend server { listen 80; server_name aegisone.ru www.aegisone.ru; location /.well-known/acme-challenge/ { root /usr/share/nginx/html; } location / { proxy_pass http://localhost:8080; 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; } } server { listen 443 ssl; http2 on; server_name aegisone.ru www.aegisone.ru; ssl_certificate /etc/nginx/certs/live/aegisone.ru.selfsigned/fullchain.pem; ssl_certificate_key /etc/nginx/certs/live/aegisone.ru.selfsigned/privkey.pem; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass http://localhost:8080; 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; } }