server { # .ygg supports yggdrasil addresses only listen [::]:80; allow 0200::/7; deny all; server_name bsd.opennet.ru.bro.ygg; # Include handles (do not delete) include /etc/yggbro/nginx/opennet.ru/opennet.ru.bro.ygg/handles/redirect.conf; location / { # Domain source proxy_pass https://bsd.opennet.ru/; # Include common location rules include /etc/yggbro/nginx/opennet.ru/opennet.ru.bro.ygg/locations/include/common.conf; # Relative paths sub_filter 'action="/' 'action="http://bsd.opennet.ru.bro.ygg/'; sub_filter 'href="/' 'href="http://bsd.opennet.ru.bro.ygg/'; sub_filter 'src="/' 'src="http://bsd.opennet.ru.bro.ygg/'; sub_filter 'data-src="/' 'src="http://bsd.opennet.ru.bro.ygg/'; sub_filter "url('/" "url('http://bsd.opennet.ru.bro.ygg/"; } }