first commit
Some checks failed
Deploy Application / deploy (push) Failing after 7m8s

This commit is contained in:
2025-06-11 21:01:17 +04:00
commit 5c7e5fabbb
29 changed files with 3074 additions and 0 deletions

22
ebook.conf Normal file
View File

@ -0,0 +1,22 @@
# HTTP → HTTPS редирект
server {
listen 80;
server_name ebook.miduway.space;
return 301 https://$host$request_uri;
}
# HTTPS
server {
listen 443 ssl;
server_name ebook.miduway.space;
# SSL (Certbot)
ssl_certificate /etc/letsencrypt/live/ebook.miduway.space/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ebook.miduway.space/privkey.pem;
location / {
proxy_pass http://frontend:3000; # Имя сервиса из docker-compose
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}