feat: Added tor hidden service via HTTP header #161

The `Onion-Location` header was added to Nginx example configuration.
This commit is contained in:
Cristian Ditaputratama 2024-11-16 19:01:09 +07:00
parent a936cb343b
commit 9b48c4731a
Signed by: ditatompel
GPG key ID: 31D3D06D77950979
2 changed files with 4 additions and 0 deletions

View file

@ -85,6 +85,7 @@ See the [Makefile](./Makefile).
- :white_check_mark: Use `a-h/templ` and `HTMX` instead of `Svelte`.
- Use Go standard `net/http` instead of `fiber`.
- :white_check_mark: Accept I2P nodes.
- :white_check_mark: Support Tor hidden service (beta, inform via HTTP header).
## Acknowledgement

View file

@ -44,6 +44,9 @@ server {
add_header X-XSS-Protection "1; mode=block";
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 {
log_not_found off;
access_log off;