mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 18:20:00 -03:30
allow API requests from localhost/127.0.0.1 to be insecure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user