21 lines
629 B
Plaintext
21 lines
629 B
Plaintext
server {
|
|
listen 443 ssl;
|
|
server_name forsen-cock.dedyn.io;
|
|
ssl_certificate /etc/letsencrypt/live/forsen-cock.dedyn.io/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/forsen-cock.dedyn.io/privkey.pem; # managed by Certbot
|
|
|
|
|
|
location / {
|
|
root /var/www/xmpp-login;
|
|
index index.html;
|
|
}
|
|
|
|
location /login {
|
|
proxy_pass http://localhost:3000; # Assuming your backend listens on port 3000
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
}
|
|
|