1.4 KiB
1.4 KiB
CloudPanel Setup (Hetzner)
Ziel
StaySense unter staysense.vanityontour.de mit CloudPanel + Let's Encrypt + Reverse Proxy auf API.
DNS
A:staysense.vanityontour.de -> 88.99.209.207AAAA:staysense.vanityontour.de -> 2a01:4f8:10a:3ae1::2
CloudPanel Eintraege
- Site-Typ:
Static HTML - Domain:
staysense.vanityontour.de - Site User: z. B.
staysense-site - SSL:
Let's Encryptaktivieren - Redirect HTTP->HTTPS aktivieren
Webroot
CloudPanel legt typischerweise an:
/home/staysense-site/htdocs/staysense.vanityontour.de
Frontend deployen:
rsync -a --delete /opt/staysense/src/ /home/staysense-site/htdocs/staysense.vanityontour.de/
chown -R staysense-site:staysense-site /home/staysense-site/htdocs/staysense.vanityontour.de
Reverse Proxy fuer API
In die vHost-Config der Site aufnehmen:
location /api/ {
proxy_pass http://127.0.0.1:8787/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
Backend Services
staysense-api.service(API)staysense-import.timer+staysense-import.service(Datenimporte)
Status:
systemctl is-active staysense-api.service
systemctl is-active staysense-import.timer
Health Checks
curl -s https://staysense.vanityontour.de/api/health
curl -I http://staysense.vanityontour.de
curl -I https://staysense.vanityontour.de