commit: move hello-onion

pull/17/head
Alec Muffett 2017-04-14 11:12:58 +01:00
rodzic 4b598130db
commit 49fc31d82a
1 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -480,15 +480,6 @@ http {
# no regular expression host blocking
%%ENDIF
%%IF %NGINX_HELLO_ONION%
# for test & to help SSL certificate acceptance
location ~* ^/hello[-_]onion/?$ {
return 200 "Hello, Onion User!";
}
%%ELSE
# no "hello-onion" endpoint
%%ENDIF
%%IF %BLOCK_LOCATION%
# block locations by name
location %BLOCK_LOCATION% {
@ -507,6 +498,15 @@ http {
# no regular expression location blocking
%%ENDIF
%%IF %NGINX_HELLO_ONION%
# for test & to help SSL certificate acceptance
location ~* ^/hello[-_]onion/?$ {
return 200 "Hello, Onion User!";
}
%%ELSE
# no "hello-onion" endpoint
%%ENDIF
# for traffic
location / {
proxy_pass "$scheme://${servernamesubdomain}%DNS_DOMAIN%"; # note $scheme