Compare commits

..

3 commits

Author SHA1 Message Date
dependabot[bot]
5525806c80
Merge 18362765b9 into 9b48c4731a 2024-11-16 19:09:17 +07:00
9b48c4731a
feat: Added tor hidden service via HTTP header #161
The `Onion-Location` header was added to Nginx example configuration.
2024-11-16 19:01:09 +07:00
a936cb343b
fix(docs): Deadlink GeoIP documentation
Also, this project not using SvelteKit anymore. So, remove the old
SvelteKit information from the README.
2024-11-15 20:14:02 +07:00
2 changed files with 7 additions and 3 deletions

View file

@ -20,8 +20,8 @@ The **clients** is used to fetch node information given by the server. First,
it will ask the server which node to fetch. Then, it will fetch the information it will ask the server which node to fetch. Then, it will fetch the information
and report back to the server. and report back to the server.
The **server** serves an embedded Svelte static site for the Web UI. It also The **server** serves the Web UI and the `/api` endpoint that is used by the
serves the `/api` endpoint that is used by the clients and the Web UI itself. clients.
## Requirements ## Requirements
@ -85,6 +85,7 @@ See the [Makefile](./Makefile).
- :white_check_mark: Use `a-h/templ` and `HTMX` instead of `Svelte`. - :white_check_mark: Use `a-h/templ` and `HTMX` instead of `Svelte`.
- Use Go standard `net/http` instead of `fiber`. - Use Go standard `net/http` instead of `fiber`.
- :white_check_mark: Accept I2P nodes. - :white_check_mark: Accept I2P nodes.
- :white_check_mark: Support Tor hidden service (beta, inform via HTTP header).
## Acknowledgement ## Acknowledgement
@ -121,7 +122,7 @@ Thank you!
This project is licensed under [BSD-3-Clause](./LICENSE) license. This project is licensed under [BSD-3-Clause](./LICENSE) license.
[templ-repo]: https://github.com/a-h/templ "a-h/templ GitHub repository" [templ-repo]: https://github.com/a-h/templ "a-h/templ GitHub repository"
[geoip-doc]: https://dev.maxmind.com/geoip/geoip2/geolite2/ "GeoIP documentation" [geoip-doc]: https://dev.maxmind.com/geoip/geolite2-free-geolocation-data/ "GeoLite2 Free documentation"
[server-systemd-service]: ./deployment/init/xmr-nodes-server.service "systemd service example for server" [server-systemd-service]: ./deployment/init/xmr-nodes-server.service "systemd service example for server"
[prober-systemd-service]: ./deployment/init/xmr-nodes-prober.service "systemd service example for prober" [prober-systemd-service]: ./deployment/init/xmr-nodes-prober.service "systemd service example for prober"
[prober-systemd-timer]: ./deployment/init/xmr-nodes-prober.timer "systemd timer example for prober" [prober-systemd-timer]: ./deployment/init/xmr-nodes-prober.timer "systemd timer example for prober"

View file

@ -44,6 +44,9 @@ server {
add_header X-XSS-Protection "1; mode=block"; add_header X-XSS-Protection "1; mode=block";
add_header X-Download-Options noopen; add_header X-Download-Options noopen;
# Add your onion URL here if you support it
# add_header Onion-Location http://<YOUR-ONION-ADDRESS>.onion$request_uri;
location = /robots.txt { location = /robots.txt {
log_not_found off; log_not_found off;
access_log off; access_log off;