diff options
author | Wayne Witzel III <wayne@riotousliving.com> | 2016-12-13 17:46:11 +0100 |
---|---|---|
committer | Wayne Witzel III <wayne@riotousliving.com> | 2016-12-13 17:47:13 +0100 |
commit | 2069473534022984ecf0559fb4f350632d673a41 (patch) | |
tree | ba73ff2b31d81e9f9a302c148d4512dba1fc06aa /config | |
parent | Merge pull request #4395 from mabashian/4163-template-list-audit (diff) | |
download | awx-2069473534022984ecf0559fb4f350632d673a41.tar.xz awx-2069473534022984ecf0559fb4f350632d673a41.zip |
allow API requests from localhost/127.0.0.1 to be insecure
Diffstat (limited to 'config')
-rw-r--r-- | config/awx-nginx.conf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/config/awx-nginx.conf b/config/awx-nginx.conf index 15e58678ba..759fc7eb5b 100644 --- a/config/awx-nginx.conf +++ b/config/awx-nginx.conf @@ -35,8 +35,23 @@ http { } 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; } |