init
This commit is contained in:
20
modules/nginx/sites-available/xmpp-login
Normal file
20
modules/nginx/sites-available/xmpp-login
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user