mirror of
https://github.com/YunoHost-Apps/yacy_ynh.git
synced 2024-09-03 18:05:59 +02:00
proxy
This commit is contained in:
parent
32b4bc02a8
commit
2ad6a5f763
2 changed files with 19 additions and 9 deletions
|
@ -1,11 +1,10 @@
|
||||||
location PATHTOCHANGE/ {
|
location PATHTOCHANGE/yacy {
|
||||||
proxy_pass_header Server;
|
proxy_pass http://127.0.0.1:8090PATHTOCHANGE/yacy;
|
||||||
proxy_set_header Host $http_host;
|
|
||||||
proxy_redirect off;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Scheme $scheme;
|
|
||||||
proxy_pass http://127.0.0.1:8090/;
|
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
|
more_clear_input_headers 'Accept-Encoding';
|
||||||
|
}
|
||||||
|
location PATHTOCHANGE/ {
|
||||||
|
proxy_pass http://127.0.0.1:8090/;
|
||||||
}
|
}
|
||||||
|
|
11
conf/nginx.conf.old
Normal file
11
conf/nginx.conf.old
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
location PATHTOCHANGE/ {
|
||||||
|
proxy_pass_header Server;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Scheme $scheme;
|
||||||
|
proxy_pass http://127.0.0.1:8090/;
|
||||||
|
|
||||||
|
# Include SSOWAT user panel.
|
||||||
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue