mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Merge pull request #4414 from wwitzel3/r310
allow API requests from localhost/127.0.0.1 to be insecure
This commit is contained in:
commit
d79748bda7
@ -34,9 +34,24 @@ http {
|
||||
server 127.0.0.1:8051;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost 127.0.0.1;
|
||||
keepalive_timeout 65;
|
||||
location / {
|
||||
# Add trailing / if missing
|
||||
rewrite ^(.*[^/])$ $1/ permanent;
|
||||
uwsgi_read_timeout 120s;
|
||||
uwsgi_pass uwsgi;
|
||||
include /etc/nginx/uwsgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name _;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
|
@ -6,9 +6,24 @@ upstream daphne {
|
||||
server localhost:8051;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8013;
|
||||
listen [::]:8013;
|
||||
server_name localhost 127.0.0.1;
|
||||
keepalive_timeout 65;
|
||||
location / {
|
||||
# Add trailing / if missing
|
||||
rewrite ^(.*[^/])$ $1/ permanent;
|
||||
uwsgi_read_timeout 120s;
|
||||
uwsgi_pass uwsgi;
|
||||
include /etc/nginx/uwsgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8013 default_server;
|
||||
listen [::]:8013 default_server;
|
||||
server_name _;
|
||||
return 301 https://$host:8043$request_uri;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user