nginx headers
This commit is contained in:
@@ -206,6 +206,9 @@ http {
|
||||
proxy_set_header Host \$host;
|
||||
proxy_set_header X-Real-IP \$remote_addr;
|
||||
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
|
||||
|
||||
add_header Subscription-Userinfo "upload=0; download=0; total=109951162777600; expire=0" always;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -246,6 +249,9 @@ http {
|
||||
proxy_set_header Host \$host;
|
||||
proxy_set_header X-Real-IP \$remote_addr;
|
||||
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
|
||||
|
||||
add_header Subscription-Userinfo "upload=0; download=0; total=109951162777600; expire=0" always;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,6 +293,8 @@ http {
|
||||
location = /bus/$SUB_TOKEN {
|
||||
alias /subscriptions/list.txt;
|
||||
default_type text/plain;
|
||||
add_header Subscription-Userinfo "upload=0; download=0; total=109951162777600; expire=0" always;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
|
||||
location / {
|
||||
@@ -334,6 +336,8 @@ http {
|
||||
location = /bus/$SUB_TOKEN {
|
||||
alias /subscriptions/list.txt;
|
||||
default_type text/plain;
|
||||
add_header Subscription-Userinfo "upload=0; download=0; total=109951162777600; expire=0" always;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
||||
Reference in New Issue
Block a user