mirror of
https://github.com/YGGverse/YGGbro.git
synced 2026-04-01 10:05:31 +00:00
initial commit
This commit is contained in:
parent
0eb5e465e0
commit
9e6e72eb22
18 changed files with 682 additions and 1 deletions
32
nginx/texty.org.ua
Normal file
32
nginx/texty.org.ua
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Mirror for https://texty.org.ua/
|
||||
# Drops all JS
|
||||
|
||||
server {
|
||||
|
||||
# HTTP/IPv6 connections only
|
||||
# listen [::]:80 ipv6only=on;
|
||||
|
||||
# Yggdrasil connections only
|
||||
# allow 0200::/7;
|
||||
# deny all;
|
||||
|
||||
# Tell to server, that's proxy request
|
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
location /texty.org.ua {
|
||||
|
||||
proxy_pass https://texty.org.ua/;
|
||||
sub_filter 'http://texty.org.ua' 'http://[$server_addr]/texty.org.ua';
|
||||
sub_filter 'https://texty.org.ua' 'http://[$server_addr]/texty.org.ua';
|
||||
sub_filter '<script' '<!-- <script';
|
||||
sub_filter '</script>' '</script> -->';
|
||||
sub_filter 'href="/support/"' 'href="https://texty.org.ua/p/support"';
|
||||
sub_filter 'href="/' 'href="http://[$server_addr]/texty.org.ua/';
|
||||
sub_filter 'src="/' 'src="http://[$server_addr]/texty.org.ua/';
|
||||
sub_filter 'data-src="/' 'src="http://[$server_addr]/texty.org.ua/';
|
||||
sub_filter "url('/" "url('http://[$server_addr]/texty.org.ua/";
|
||||
sub_filter_once off;
|
||||
sub_filter_types *;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue