|
|
@ -6,6 +6,7 @@ location /yggbro/pingvinus.ru { |
|
|
|
# Tell to server, that's proxy request |
|
|
|
# Tell to server, that's proxy request |
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
|
|
|
|
proxy_set_header Accept-Encoding ""; |
|
|
|
|
|
|
|
|
|
|
|
# Replace links |
|
|
|
# Replace links |
|
|
|
sub_filter_once off; |
|
|
|
sub_filter_once off; |
|
|
@ -15,7 +16,6 @@ location /yggbro/pingvinus.ru { |
|
|
|
sub_filter 'https://pingvinus.ru' 'http://[$server_addr]/yggbro/pingvinus.ru'; |
|
|
|
sub_filter 'https://pingvinus.ru' 'http://[$server_addr]/yggbro/pingvinus.ru'; |
|
|
|
sub_filter '<script' '<!-- <script'; |
|
|
|
sub_filter '<script' '<!-- <script'; |
|
|
|
sub_filter '</script>' '</script> -->'; |
|
|
|
sub_filter '</script>' '</script> -->'; |
|
|
|
sub_filter 'href="/support/"' 'href="https://pingvinus.ru/p/support"'; |
|
|
|
|
|
|
|
sub_filter 'href="/' 'href="http://[$server_addr]/yggbro/pingvinus.ru/'; |
|
|
|
sub_filter 'href="/' 'href="http://[$server_addr]/yggbro/pingvinus.ru/'; |
|
|
|
sub_filter 'src="/' 'src="http://[$server_addr]/yggbro/pingvinus.ru/'; |
|
|
|
sub_filter 'src="/' 'src="http://[$server_addr]/yggbro/pingvinus.ru/'; |
|
|
|
sub_filter 'data-src="/' 'src="http://[$server_addr]/yggbro/pingvinus.ru/'; |
|
|
|
sub_filter 'data-src="/' 'src="http://[$server_addr]/yggbro/pingvinus.ru/'; |
|
|
|