Use envsubst for environment variables in nginx.conf #28
Labels
No labels
Critical Bug
Documentation
Feature
Small bug
tests
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
babka/activitycolander#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To allow for fallthrough of environment variables such as
AP_SERVERandAP_PORT, innginx.conf, we must haveenvsubst, which already comes withalpine-fat, which we are using.Unfortunately, in order to achieve this, we must make a few changes:
nginx.conffile must be turned into a template fileenvsubstmust be called on the template file before execution, which requiresenvsubstand also set default values to any unset variables, eg settingAP_PORTto `80'.assigned to @emacsen
This is unnecessary due to other changes.