summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorWayne Witzel III <wayne@riotousliving.com>2016-12-13 17:46:11 +0100
committerWayne Witzel III <wayne@riotousliving.com>2016-12-13 17:47:13 +0100
commit2069473534022984ecf0559fb4f350632d673a41 (patch)
treeba73ff2b31d81e9f9a302c148d4512dba1fc06aa /config
parentMerge pull request #4395 from mabashian/4163-template-list-audit (diff)
downloadawx-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.conf15
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;
}