This commit is contained in:
2026-01-05 15:15:50 +01:00
parent 12ff5ea637
commit 4076687f37
2 changed files with 37 additions and 44 deletions

View File

@@ -26,6 +26,22 @@ server {
}
}
server {
listen 81 ssl;
server_name srv413259.hstgr.cloud;
ssl_certificate /etc/letsencrypt/live/srv413259.hstgr.cloud/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/srv413259.hstgr.cloud/privkey.pem;
location / {
proxy_pass http://hugo:80; # "hugo" = nom du service Docker
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 https;
}
}
server {
listen 8444 ssl;
server_name srv413259.hstgr.cloud;
@@ -88,8 +104,8 @@ server {
client_max_body_size 100M;
# Dashboard React (build Vite)
root /var/www/dashboard; # ✅ Mets ici le chemin où tu as copié le contenu de `dist/`
index index.html;
#root /var/www/dashboard; # ✅ Mets ici le chemin où tu as copié le contenu de `dist/`
#index index.html;
location /dashboard {
alias /var/www/dashboard/;
@@ -108,6 +124,12 @@ server {
alias /var/www/dashboard;
}
# location /os-site/ {
# root /var/www/;
# index index.html;
# try_files $uri $uri/ /os-site/index.html;
# }
# Metabase : reverse proxy vers port 3000
location /metabase/ {
proxy_pass http://metabase:3000/;