nginx/xtex.conf
xtex ce94ff3f6b
Fix UNIX domain socket for xtex.conf
I also changed the permission of the sockets to 0777.
Now it should be working.
srwxrwxrwx  1 xtex          http             0 Sep  3 00:09 xtexblog.sock=
srwxrwxrwx  1 xtex          http             0 Sep  3 00:09 xtexhome.sock=
Sorry for my mistakes
2023-09-03 08:11:14 +08:00

42 lines
1.2 KiB
Text

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name xtexx.eu.org;
ssl_certificate /etc/letsencrypt/live/xtexx.eu.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xtexx.eu.org/privkey.pem;
add_header Server exozyme;
location / {
proxy_pass http://unix:/srv/http/pages/xtexhome.sock;
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;
# Proxy WebSockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name blog.xtexx.eu.org;
ssl_certificate /etc/letsencrypt/live/blog.xtexx.eu.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/blog.xtexx.eu.org/privkey.pem;
add_header Server exozyme;
location / {
proxy_pass http://unix:/srv/http/pages/xtexblog.sock;
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;
}
}