summaryrefslogtreecommitdiffstats
path: root/tools/docker-compose
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 /tools/docker-compose
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 'tools/docker-compose')
-rw-r--r--tools/docker-compose/nginx.vh.default.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/docker-compose/nginx.vh.default.conf b/tools/docker-compose/nginx.vh.default.conf
index 5cabf89bbb..fe3333dadf 100644
--- a/tools/docker-compose/nginx.vh.default.conf
+++ b/tools/docker-compose/nginx.vh.default.conf
@@ -7,8 +7,23 @@ upstream daphne {
}
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;
}