mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
copy nginx config and uwsgi_params
This commit is contained in:
parent
c64392eb67
commit
e4e878d041
@ -59,15 +59,18 @@ http {
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://uwsgi;
|
||||
proxy_http_version 1.1;
|
||||
proxy_buffering off;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
uwsgi_pass uwsgi;
|
||||
include /etc/nginx/uwsgi_params;
|
||||
|
||||
#proxy_pass http://uwsgi;
|
||||
#proxy_http_version 1.1;
|
||||
#proxy_buffering off;
|
||||
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
#proxy_set_header X-Forwarded-Proto https;
|
||||
#proxy_set_header Host $http_host;
|
||||
#proxy_redirect off;
|
||||
#proxy_set_header Upgrade $http_upgrade;
|
||||
#proxy_set_header Connection $connection_upgrade;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
10
setup.py
10
setup.py
@ -25,14 +25,16 @@ docdir = "/usr/share/doc/ansible-tower"
|
||||
|
||||
if os.path.exists("/etc/debian_version"):
|
||||
sysinit = "/etc/init.d"
|
||||
webconfig = "/etc/apache2/conf.d"
|
||||
webconfig = "/etc/nginx"
|
||||
siteconfig = "/etc/nginx/sites-enabled"
|
||||
# sosreport-3.1 (and newer) look in '/usr/share/sosreport/sos/plugins'
|
||||
# sosreport-3.0 looks in '/usr/lib/python2.7/dist-packages/sos/plugins'
|
||||
# debian/<package>.links will create symlinks to support both versions
|
||||
sosconfig = "/usr/share/sosreport/sos/plugins"
|
||||
else:
|
||||
sysinit = "/etc/rc.d/init.d"
|
||||
webconfig = "/etc/httpd/conf.d"
|
||||
webconfig = "/etc/nginx"
|
||||
siteconfig = "/etc/nginx/sites-enabled"
|
||||
# The .spec will create symlinks to support multiple versions of sosreport
|
||||
sosconfig = "/usr/share/sosreport/sos/plugins"
|
||||
|
||||
@ -114,8 +116,8 @@ setup(
|
||||
data_files = proc_data_files([
|
||||
("%s" % homedir, ["config/wsgi.py",
|
||||
"awx/static/favicon.ico"]),
|
||||
("%s" % webconfig, ["config/awx-httpd-80.conf",
|
||||
"config/awx-httpd-443.conf"]),
|
||||
("%s" % siteconfig, ["config/awx-nginx.conf"]),
|
||||
("%s" % webconfig, ["config/uwsgi_params"]),
|
||||
("%s" % sharedir, ["tools/scripts/request_tower_configuration.sh","tools/scripts/request_tower_configuration.ps1"]),
|
||||
("%s" % docdir, ["docs/licenses/*",]),
|
||||
("%s" % bindir, ["tools/scripts/ansible-tower-service",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user