Skip to content

Commit

Permalink
Add ability to configmap and include config files for nginx.conf (ans…
Browse files Browse the repository at this point in the history
  • Loading branch information
rooftopcellist authored Dec 16, 2022
1 parent 4ee523e commit 19c6c77
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,17 @@ Example spec file for volumes and volume mounts

> :warning: **Volume and VolumeMount names cannot contain underscores(_)**

##### Custom Nginx Configuration

Using the [extra_volumes feature](#custom-volume-and-volume-mount-options), it is possible to extend the nginx.conf.

1. Create a ConfigMap with the extra settings you want to include in the nginx.conf
2. Create an extra_volumes entry in the AWX spec for this ConfigMap
3. Create an web_extra_volume_mounts entry in the AWX spec to mount this volume

The AWX nginx config automatically includes /etc/nginx/conf.d/*.conf if present.


#### Default execution environments from private registries

In order to register default execution environments from private registries, the Custom Resource needs to know about the pull credentials. Those credentials should be stored as a secret and either specified as `ee_pull_credentials_secret` at the CR spec level, or simply be present on the namespace under the name `<resourcename>-ee-pull-credentials` . Instance initialization will register a `Container registry` type credential on the deployed instance and assign it to the registered default execution environments.
Expand Down Expand Up @@ -1121,7 +1132,7 @@ Example configuration of `extra_settings` parameter

Note for some settings, such as `LOG_AGGREGATOR_LEVEL`, the value may need double quotes.

```yaml

#### No Log
Configure no_log for tasks with no_log

Expand Down
4 changes: 1 addition & 3 deletions roles/installer/templates/configmaps/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ data:
uwsgi_read_timeout 120s;
uwsgi_pass uwsgi;
include /etc/nginx/uwsgi_params;
{%- if extra_nginx_include is defined %}
include {{ extra_nginx_include }};
{%- endif %}
include /etc/nginx/conf.d/*.conf;
proxy_set_header X-Forwarded-Port 443;
uwsgi_param HTTP_X_FORWARDED_PORT 443;

Expand Down

0 comments on commit 19c6c77

Please sign in to comment.