disable api access from subdomained skapps (#719)
* disable api access from subdomained skapps * temporary reroute from skynet-mysky to ann1 dev version * revert dev change * mistakenly deleted try
This commit is contained in:
parent
68f52f14fe
commit
bd6763b47c
|
@ -72,7 +72,6 @@ server {
|
||||||
rewrite ^/skynet/blacklist /skynet/blocklist permanent;
|
rewrite ^/skynet/blacklist /skynet/blocklist permanent;
|
||||||
rewrite ^/account/(.*) https://account.$domain.$tld/$1 permanent;
|
rewrite ^/account/(.*) https://account.$domain.$tld/$1 permanent;
|
||||||
|
|
||||||
location / {
|
|
||||||
# This is only safe workaround to reroute based on some conditions
|
# This is only safe workaround to reroute based on some conditions
|
||||||
# See https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/
|
# See https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/
|
||||||
recursive_error_pages on;
|
recursive_error_pages on;
|
||||||
|
@ -89,6 +88,7 @@ server {
|
||||||
return 461;
|
return 461;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
include /etc/nginx/conf.d/include/cors;
|
include /etc/nginx/conf.d/include/cors;
|
||||||
|
|
||||||
proxy_pass http://website:9000;
|
proxy_pass http://website:9000;
|
||||||
|
|
Reference in New Issue