mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
This commit is contained in:
parent
3ac0bb22b2
commit
534f7187c4
@ -56,7 +56,9 @@ http {
|
||||
gzip on;
|
||||
|
||||
|
||||
location / {
|
||||
# Only allow all methods (GET,POST,PUT,etc..) for root (/pgapi).
|
||||
# see https://github.com/bpatrik/pigallery2/issues/214
|
||||
location /pgapi {
|
||||
proxy_pass http://pigallery2:80; # forwarding to the other container, named 'pigallery2'
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
@ -65,6 +67,17 @@ http {
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
location / {
|
||||
limit_except GET {
|
||||
deny all;
|
||||
}
|
||||
proxy_pass http://pigallery2:80; # forwarding to the other container, named 'pigallery2'
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
listen 443 ssl default_server;
|
||||
listen [::]:443 ssl default_server;
|
||||
|
@ -56,7 +56,9 @@ http {
|
||||
gzip on;
|
||||
|
||||
|
||||
location / {
|
||||
# Only allow all methods (GET,POST,PUT,etc..) for root (/pgapi).
|
||||
# see https://github.com/bpatrik/pigallery2/issues/214
|
||||
location /pgapi {
|
||||
proxy_pass http://pigallery2:80; # forwarding to the other container, named 'pigallery2'
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
@ -65,6 +67,17 @@ http {
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
location / {
|
||||
limit_except GET {
|
||||
deny all;
|
||||
}
|
||||
proxy_pass http://pigallery2:80; # forwarding to the other container, named 'pigallery2'
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
listen 443 ssl default_server;
|
||||
listen [::]:443 ssl default_server;
|
||||
|
Loading…
Reference in New Issue
Block a user