Commit graph

11 commits

Author SHA1 Message Date
f9748b3ec7
Change /srv/http/pages to /srv/http, don't automatically forward ports 4200-9
The first change doesn't require any manual intervention since /srv/http/pages is now symlinked to /srv/http. The purpose of it is just to make paths shorter, that's all.

I have several reasons for the second change, even though it may have been a useful feature:
- Security: Some programs use those ports by default and you don't want to accidentally expose them to the internet. If you want to run a program on exozyme and view it on your own computer, use SSH port forwarding instead.
- There was some weird DNS resolution problem with that config so I made it only listen to IPv4, which can cause problems since some programs only bind to IPv6.
- If you want to expose a program to the internet, you must use a Unix socket or socat. This feature was useful as a quick-and-dirty option, but socat is also just one command and doesn't require much more effort.
2024-01-20 16:01:08 +00:00
21303cfea0
Move SSL stuff to /etc/nginx/nginx.conf 2024-01-11 18:25:56 +00:00
1b30fed65f
Improve SSL config 2024-01-11 17:43:59 +00:00
cba3cc387f
Use single cert for both xtexx.eu.org and blog.xtexx.eu.org 2023-11-16 02:24:46 +00:00
956cb33b26
Remove .sock suffix for xtex.conf 2023-09-03 12:43:37 +08:00
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
96ed6d7bdf
Wrap proxy_pass stuff in a location / block for xtex.conf 2023-09-02 19:20:23 +00:00
62870b2f0a
Update xtexx.eu.org
- xtexx.eu.org is moving from Vercel to exopages for better experience
  and extensible (e.g. CSP)
  The refactor is also in progress.
  The source code can be found at https://codeberg.org/xtex/home.git
  The server is deployed with podman with a low memory limitation.
  btw, cache-handler sucks.
- blog.xtexx.eu.org is now handled by the same caddy instance for
  xtexx.eu.org.
  The main reason is that, there will be more and more complex rules in
  the future. And I will implement more RFCs (e.g. RFC6415) for this domain.
2023-09-02 19:36:46 +08:00
14cccfb385
refactor: migrate to xtexx.eu.org 2023-07-20 20:43:36 +08:00
d7e4151476
Use new http2 on; directive to enable HTTP/2 in /etc/nginx/nginx.conf instead of in individual conf files 2023-07-06 14:48:08 +00:00
cfe3c09e5c
add blog.xtexx.ml 2023-06-12 07:53:08 +08:00