add nginx config
This commit is contained in:
parent
68db4e6257
commit
fec68e9a9f
|
@ -1,3 +1,5 @@
|
|||
# return_204
|
||||
|
||||
simple config for a replacement of the android 204 generation.
|
||||
simple config for a replacement of the android 204 generation.
|
||||
|
||||
This repository includes a script to run in root android shell and a nginx config.
|
||||
|
|
21
config/nginx
Normal file
21
config/nginx
Normal file
|
@ -0,0 +1,21 @@
|
|||
server {
|
||||
# listen http
|
||||
listen 80;
|
||||
# listen http, ipv6
|
||||
listen [::]:80;
|
||||
# listen https
|
||||
listen 443;
|
||||
# listen https, ipv6
|
||||
listen [::]:443;
|
||||
|
||||
|
||||
# REPLACE THE EXAMPLE DOMAIN BELOW
|
||||
server_name subdomain.example.com;
|
||||
|
||||
# return 204 by default
|
||||
return 204;
|
||||
|
||||
# intercept errors and redirect to 204
|
||||
proxy_intercept_errors on;
|
||||
error_page 500 502 503 504 =204;
|
||||
}
|
Loading…
Reference in a new issue