tor: exit relay notice
This commit is contained in:
parent
60bd3f1b82
commit
1cdcf7c5f9
1 changed files with 13 additions and 2 deletions
|
@ -76,8 +76,19 @@
|
||||||
nyx # Command-line monitor for Tor
|
nyx # Command-line monitor for Tor
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: serve `builtins.toFile "tor-exit-notice.html" (builtins.readFile ./tor-exit-notice.html)` on HTTP
|
# Serve Exit Relay Notice HTML page
|
||||||
# Exit Notice HTML page (https://community.torproject.org/relay/setup/exit/)
|
# https://community.torproject.org/relay/setup/exit/
|
||||||
|
services.caddy = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"http://" = {
|
||||||
|
extraConfig = ''
|
||||||
|
header Content-Type text/html
|
||||||
|
respond `${builtins.readFile ./tor-exit-notice.html}`
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# https://support.torproject.org/relay-operators/#relay-operators_relay-bridge-overloaded
|
# https://support.torproject.org/relay-operators/#relay-operators_relay-bridge-overloaded
|
||||||
# https://lists.torproject.org/pipermail/tor-talk/2012-August/025296.html
|
# https://lists.torproject.org/pipermail/tor-talk/2012-August/025296.html
|
||||||
|
|
Loading…
Reference in a new issue