Addresses requests to make it easier to avoid conflicts between the Horizon dashboard and http services that might already be running on the machine. Configurable via snap config. Exposing via arguments to .init and testing post init configuration is left for a separate PR. Eventually, these may move to non standard ports by default. This PR sets the stage for that, but further discussion is needed before we decide whether to implement. (This commit also contains a sneaky fix for the username display at the end of the launch script.) Closes-Bug: 1814829 Change-Id: If728d6ec8024bca4d3e809637fbdcc03ed4e6934
14 lines
502 B
Django/Jinja
14 lines
502 B
Django/Jinja
# If the OpenStack service has an API that runs behind uwsgi+nginx, you'll need
|
|
# to define this template. Be sure to update "listen" with the port number and
|
|
# also update "api-name" for the socket.
|
|
server {
|
|
listen {{ dashboard_port }};
|
|
error_log syslog:server=unix:/dev/log;
|
|
access_log syslog:server=unix:/dev/log;
|
|
location / {
|
|
include {{ snap }}/usr/conf/uwsgi_params;
|
|
uwsgi_param SCRIPT_NAME '';
|
|
uwsgi_pass unix://{{ snap_common }}/run/horizon.sock;
|
|
}
|
|
}
|