forked from exozyme/nginx
Separate snac2 and Phanpy into two subdomains
This commit is contained in:
parent
f216e37a42
commit
5e8ad9b7da
1 changed files with 11 additions and 26 deletions
|
@ -24,39 +24,24 @@ server {
|
|||
ssl_certificate_key /etc/letsencrypt/live/max.is-probably.gay/privkey.pem;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:5173;
|
||||
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 $scheme;
|
||||
}
|
||||
|
||||
location /api/v1 {
|
||||
proxy_pass http://localhost:1350/api/v1;
|
||||
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 $scheme;
|
||||
}
|
||||
|
||||
location /.well-known {
|
||||
proxy_pass http://localhost:1350/.well-known;
|
||||
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 $scheme;
|
||||
}
|
||||
|
||||
location /snac {
|
||||
proxy_pass http://localhost:1350;
|
||||
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 $scheme;
|
||||
}
|
||||
}
|
||||
|
||||
location /oauth {
|
||||
proxy_pass http://localhost:1350/oauth;
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name phanpy.max.is-probably.gay;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/max.is-probably.gay/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/max.is-probably.gay/privkey.pem;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:5173;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
Loading…
Reference in a new issue