openresty-config/http.d/inv.conf

63 lines
1.6 KiB
Text

# CLEARNET TOR AND I2P
# (Tor and I2P listens on 4080, defined on configs/listen.conf)
server {
error_log /var/log/nginx/inv.nadeko.net.error.log;
server_name
inv.nadeko.net
~^inv([1-5])\.nadeko\.net$
inv.nadekonw7plitnjuawu6ytjsl7jlglk2t6pyq6eftptmiv3dvqndwvyd.onion
~^inv([1-5])\.nadekonw7plitnjuawu6ytjsl7jlglk2t6pyq6eftptmiv3dvqndwvyd\.onion$;
include configs/listen.conf;
include configs/robotsNone.conf;
include configs/asn-ban.conf;
include configs/manual-ip-ban.conf;
# The messed up invidious configuration
include http.d/locations/inv.conf;
if ($blocked_agent = 1) {
return 403 "
Hi! You got blocked by network security!!!
Nah, just kidding, your IP range is blocked from
accessing this server/service.
If you think this is an error, contact me at:
https://nadeko.net/contact
";
}
error_page 502 /502.html;
error_page 503 /503.html;
location = /503.html {
content_by_lua_file conf/lua/503-invidious.lua;
}
location = /502.html {
content_by_lua_file conf/lua/502-invidious.lua;
}
}
# CLEARNET FEED
server {
error_log /var/log/nginx/inv.nadeko.net.feed.error.log;
access_log /var/log/nginx/inv.nadeko.net.feed.access.log;
server_name feed-inv.nadeko.net;
include configs/listen.conf;
include configs/robotsNone.conf;
# The messed up invidious configuration
include http.d/locations/inv-feed.conf;
}
# INVIDIOUS COMPANION
server {
server_name inv-cl1-c.nadeko.net;
include configs/listen.conf;
include configs/robotsNone.conf;
location / {
proxy_pass http://invidious-companion-backend1;
include configs/proxy.conf;
}
}