mirror of https://github.com/YGGverse/YGGbro.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
5.1 KiB
126 lines
5.1 KiB
# Include configuration file |
|
# Describes common rules for available locations |
|
|
|
# Tell to server, that's proxy request |
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
# Prevent out redirects (issue #2) |
|
proxy_intercept_errors on; |
|
error_page 301 302 307 = @yggbro_nginx_opennet_ru_opennet_ru_bro_ygg_handles_redirect; |
|
|
|
# Replace all matches |
|
sub_filter_once off; |
|
|
|
# Enable multimedia replacement |
|
sub_filter_types *; |
|
|
|
# Disable JS / trackers by default |
|
sub_filter '<script' '<!-- <script'; |
|
sub_filter '</script>' '</script> -->'; |
|
|
|
# Feedback link to project repository |
|
sub_filter '</body>' '<a style="position:fixed;top:20px;right:20px;z-index:999" href="https://github.com/YGGverse/YGGbro/tree/main/nginx/opennet.ru/opennet.ru.bro.ygg" target="_blank">YGGbro</a></body>'; |
|
|
|
# Links |
|
|
|
# . |
|
sub_filter 'http://opennet.ru' 'http://opennet.ru.bro.ygg'; |
|
sub_filter 'https://opennet.ru' 'http://opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://opennet.me' 'http://opennet.ru.bro.ygg'; |
|
sub_filter 'https://opennet.me' 'http://opennet.ru.bro.ygg'; |
|
|
|
# www |
|
sub_filter 'http://www.opennet.ru' 'http://www.opennet.ru.bro.ygg'; |
|
sub_filter 'https://www.opennet.ru' 'http://www.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://www.opennet.me' 'http://www.opennet.ru.bro.ygg'; |
|
sub_filter 'https://www.opennet.me' 'http://www.opennet.ru.bro.ygg'; |
|
|
|
# m |
|
sub_filter 'http://m.opennet.ru' 'http://m.opennet.ru.bro.ygg'; |
|
sub_filter 'https://m.opennet.ru' 'http://m.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://m.opennet.me' 'http://m.opennet.ru.bro.ygg'; |
|
sub_filter 'https://m.opennet.me' 'http://m.opennet.ru.bro.ygg'; |
|
|
|
# mobile |
|
sub_filter 'http://mobile.opennet.ru' 'http://mobile.opennet.ru.bro.ygg'; |
|
sub_filter 'https://mobile.opennet.ru' 'http://mobile.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://mobile.opennet.me' 'http://mobile.opennet.ru.bro.ygg'; |
|
sub_filter 'https://mobile.opennet.me' 'http://mobile.opennet.ru.bro.ygg'; |
|
|
|
# wiki |
|
sub_filter 'http://wiki.opennet.ru' 'http://wiki.opennet.ru.bro.ygg'; |
|
sub_filter 'https://wiki.opennet.ru' 'http://wiki.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://wiki.opennet.me' 'http://wiki.opennet.ru.bro.ygg'; |
|
sub_filter 'https://wiki.opennet.me' 'http://wiki.opennet.ru.bro.ygg'; |
|
|
|
# solaris |
|
sub_filter 'http://solaris.opennet.ru' 'http://solaris.opennet.ru.bro.ygg'; |
|
sub_filter 'https://solaris.opennet.ru' 'http://solaris.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://solaris.opennet.me' 'http://solaris.opennet.ru.bro.ygg'; |
|
sub_filter 'https://solaris.opennet.me' 'http://solaris.opennet.ru.bro.ygg'; |
|
|
|
# bsd |
|
sub_filter 'http://bsd.opennet.ru' 'http://bsd.opennet.ru.bro.ygg'; |
|
sub_filter 'https://bsd.opennet.ru' 'http://bsd.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://bsd.opennet.me' 'http://bsd.opennet.ru.bro.ygg'; |
|
sub_filter 'https://bsd.opennet.me' 'http://bsd.opennet.ru.bro.ygg'; |
|
|
|
# cisco |
|
sub_filter 'http://cisco.opennet.ru' 'http://cisco.opennet.ru.bro.ygg'; |
|
sub_filter 'https://cisco.opennet.ru' 'http://cisco.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://cisco.opennet.me' 'http://cisco.opennet.ru.bro.ygg'; |
|
sub_filter 'https://cisco.opennet.me' 'http://cisco.opennet.ru.bro.ygg'; |
|
|
|
# linux |
|
sub_filter 'http://linux.opennet.ru' 'http://linux.opennet.ru.bro.ygg'; |
|
sub_filter 'https://linux.opennet.ru' 'http://linux.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://linux.opennet.me' 'http://linux.opennet.ru.bro.ygg'; |
|
sub_filter 'https://linux.opennet.me' 'http://linux.opennet.ru.bro.ygg'; |
|
|
|
# web |
|
sub_filter 'http://web.opennet.ru' 'http://web.opennet.ru.bro.ygg'; |
|
sub_filter 'https://web.opennet.ru' 'http://web.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://web.opennet.me' 'http://web.opennet.ru.bro.ygg'; |
|
sub_filter 'https://web.opennet.me' 'http://web.opennet.ru.bro.ygg'; |
|
|
|
# security |
|
sub_filter 'http://security.opennet.ru' 'http://security.opennet.ru.bro.ygg'; |
|
sub_filter 'https://security.opennet.ru' 'http://security.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://security.opennet.me' 'http://security.opennet.ru.bro.ygg'; |
|
sub_filter 'https://security.opennet.me' 'http://security.opennet.ru.bro.ygg'; |
|
|
|
# palm |
|
sub_filter 'http://palm.opennet.ru' 'http://palm.opennet.ru.bro.ygg'; |
|
sub_filter 'https://palm.opennet.ru' 'http://palm.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://palm.opennet.me' 'http://palm.opennet.ru.bro.ygg'; |
|
sub_filter 'https://palm.opennet.me' 'http://palm.opennet.ru.bro.ygg'; |
|
|
|
# grab |
|
sub_filter 'http://grab.opennet.ru' 'http://grab.opennet.ru.bro.ygg'; |
|
sub_filter 'https://grab.opennet.ru' 'http://grab.opennet.ru.bro.ygg'; |
|
|
|
sub_filter 'http://grab.opennet.me' 'http://grab.opennet.ru.bro.ygg'; |
|
sub_filter 'https://grab.opennet.me' 'http://grab.opennet.ru.bro.ygg'; |
|
|
|
# forum |
|
sub_filter 'http://forum.opennet.ru' 'http://opennet.ru.bro.ygg/wwwcgi-bin/openforum/vsluhboard.cgi'; |
|
sub_filter 'https://forum.opennet.ru' 'http://opennet.ru.bro.ygg/wwwcgi-bin/openforum/vsluhboard.cgi'; |
|
|
|
sub_filter 'http://forum.opennet.me' 'http://opennet.ru.bro.ygg/wwwcgi-bin/openforum/vsluhboard.cgi'; |
|
sub_filter 'https://forum.opennet.me' 'http://opennet.ru.bro.ygg/wwwcgi-bin/openforum/vsluhboard.cgi'; |
|
|
|
sub_filter '/forum' '/cgi-bin/openforum/vsluhboard.cgi'; |
|
sub_filter './forum' 'http://opennet.ru.bro.ygg/wwwcgi-bin/openforum/vsluhboard.cgi'; |