kopia lustrzana https://github.com/alecmuffett/eotk
commit: move hello-onion
rodzic
4b598130db
commit
49fc31d82a
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue