chore(devops): HTTPS for meditron.tenvex.ru too
CI / ruff · pytest (pull_request) Successful in 2m20s
CI / ruff · pytest (pull_request) Successful in 2m20s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
# /api/ FastAPI (127.0.0.1:8010)
|
# /api/ FastAPI (127.0.0.1:8010)
|
||||||
# /doctor/ Streamlit doctor dashboard + demo console (127.0.0.1:8511, baseUrlPath=doctor)
|
# /doctor/ Streamlit doctor dashboard + demo console (127.0.0.1:8511, baseUrlPath=doctor)
|
||||||
# dev.meditron.tenvex.ru — HTTPS (Let's Encrypt, certbot certonly --nginx, auto-renew).
|
# dev.meditron.tenvex.ru — HTTPS (Let's Encrypt, certbot certonly --nginx, auto-renew).
|
||||||
# meditron.tenvex.ru — HTTP until its DNS record exists; then: certbot certonly --nginx -d meditron.tenvex.ru
|
# meditron.tenvex.ru — HTTPS (same stack for now; will serve the main branch after promotion).
|
||||||
# and move it into an HTTPS block like dev.meditron.
|
|
||||||
|
|
||||||
map $http_upgrade $ptsr_connection_upgrade {
|
map $http_upgrade $ptsr_connection_upgrade {
|
||||||
default upgrade;
|
default upgrade;
|
||||||
@@ -69,6 +68,18 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name meditron.tenvex.ru;
|
server_name meditron.tenvex.ru;
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
server_name meditron.tenvex.ru;
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/meditron.tenvex.ru/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/meditron.tenvex.ru/privkey.pem;
|
||||||
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||||
|
|
||||||
access_log /var/log/nginx/ptsr-access.log;
|
access_log /var/log/nginx/ptsr-access.log;
|
||||||
client_max_body_size 5m;
|
client_max_body_size 5m;
|
||||||
|
|||||||
Reference in New Issue
Block a user