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