|
|
@ -1,4 +1,4 @@ |
|
|
|
location /yggbro/mentallandscape.com { |
|
|
|
location /yggbro/mentallandscape.com/ { |
|
|
|
|
|
|
|
|
|
|
|
# Forward to server |
|
|
|
# Forward to server |
|
|
|
proxy_pass http://mentallandscape.com/; |
|
|
|
proxy_pass http://mentallandscape.com/; |
|
|
@ -15,12 +15,15 @@ location /yggbro/mentallandscape.com { |
|
|
|
sub_filter 'https://mentallandscape.com' 'http://[$server_addr]/yggbro/mentallandscape.com'; |
|
|
|
sub_filter 'https://mentallandscape.com' 'http://[$server_addr]/yggbro/mentallandscape.com'; |
|
|
|
sub_filter '<script' '<!-- <script'; |
|
|
|
sub_filter '<script' '<!-- <script'; |
|
|
|
sub_filter '</script>' '</script> -->'; |
|
|
|
sub_filter '</script>' '</script> -->'; |
|
|
|
sub_filter 'href="/support/"' 'href="https://mentallandscape.com/p/support"'; |
|
|
|
|
|
|
|
sub_filter 'href="/' 'href="http://[$server_addr]/yggbro/mentallandscape.com/'; |
|
|
|
sub_filter 'href="/' 'href="http://[$server_addr]/yggbro/mentallandscape.com/'; |
|
|
|
sub_filter 'src="/' 'src="http://[$server_addr]/yggbro/mentallandscape.com/'; |
|
|
|
sub_filter 'src="/' 'src="http://[$server_addr]/yggbro/mentallandscape.com/'; |
|
|
|
sub_filter 'data-src="/' 'src="http://[$server_addr]/yggbro/mentallandscape.com/'; |
|
|
|
sub_filter 'data-src="/' 'src="http://[$server_addr]/yggbro/mentallandscape.com/'; |
|
|
|
sub_filter "url('/" "url('http://[$server_addr]/yggbro/mentallandscape.com/"; |
|
|
|
sub_filter "url('/" "url('http://[$server_addr]/yggbro/mentallandscape.com/"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sub_filter "</HEAD>" '<base href="http://[$server_addr]/yggbro/mentallandscape.com/" /></HEAD>'; |
|
|
|
|
|
|
|
sub_filter "</head>" '<base href="http://[$server_addr]/yggbro/mentallandscape.com/" /></head>'; |
|
|
|
|
|
|
|
|
|
|
|
# Feedback link to project repository |
|
|
|
# Feedback link to project repository |
|
|
|
sub_filter '</body>' '<a style="position:fixed;top:20px;right:20px;z-index:999;color:#fff" href="https://github.com/YGGverse/YGGbro/tree/main/nginx/mentallandscape.com/yggbro/mentallandscape.com" target="_blank">YGGbro</a></body>'; |
|
|
|
sub_filter '</body>' '<a style="position:fixed;top:20px;right:20px;z-index:999;color:#fff" href="https://github.com/YGGverse/YGGbro/tree/main/nginx/mentallandscape.com/yggbro/mentallandscape.com" target="_blank">YGGbro</a></body>'; |
|
|
|
} |
|
|
|
} |