Browse Source

fix links base

main
ghost 9 months ago
parent
commit
f0cefeb09f
  1. 7
      nginx/mentallandscape.com/yggbro/mentallandscape.com/location.conf

7
nginx/mentallandscape.com/yggbro/mentallandscape.com/location.conf

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
location /yggbro/mentallandscape.com {
location /yggbro/mentallandscape.com/ {
# Forward to server
proxy_pass http://mentallandscape.com/;
@ -15,12 +15,15 @@ location /yggbro/mentallandscape.com { @@ -15,12 +15,15 @@ location /yggbro/mentallandscape.com {
sub_filter 'https://mentallandscape.com' 'http://[$server_addr]/yggbro/mentallandscape.com';
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 '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 "</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
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>';
}
Loading…
Cancel
Save