File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ serving the same site and as such PHP sessions should be centralised. The defaul
5555| CONTAINER_MODE | web, cron, or worker | web |
5656| ATATUS_ENABLED | Boolean to enable or disable Atatus APM | false |
5757| ATATUS_APM_LICENSE_KEY | Provides a licence key to enable the Atatus APM PHP module. Disabled Atatus APM if not set. | |
58+ | ATATUS_ENABLED | The name of the application to be passed to Atatus | "PHP App" |
5859| REDIS_HOST | Provide the path to Redis for PHP session storage. | tcp://redis:6379 |
5960| MAIL_RELAY | Set the SMTP mail host for the system's SSMTP mail relay service | outbound.kube-mail:25 |
60- | APP_NAME | The name of the application to be passed to Atatus | "PHP App" |
6161| APP_ENV | The name of the environment to be passed to Atatus | null |
62- | APP_VERSION | The version of the app | null |
62+ | APP_VERSION | The version of the app | Set by the upstream container |
Original file line number Diff line number Diff line change 33
44# Startup logging
55echo " === Container Startup ==="
6+ echo " App name: ${ATATUS_APP_NAME: app} "
7+ echo " App version: ${APP_VERSION: none} "
68echo " Container mode: ${CONTAINER_MODE:- web} "
79echo " Environment: ${APP_ENV:- production} "
810echo " Atatus: ${ATATUS_ENABLED:- false} "
@@ -26,7 +28,7 @@ cp /nhsla/ro/atatus.ini /nhsla/rw/atatus.ini
2628if [ " ${ATATUS_ENABLED:- false} " = " true" ] && [ ! -z " $ATATUS_APM_LICENSE_KEY " ]; then
2729 # If Atatus is enabled and API key set then configure Atatus
2830 sed -i -e " s/atatus.license_key = \"\" /atatus.license_key = \" $ATATUS_APM_LICENSE_KEY \" /g" /nhsla/rw/atatus.ini
29- sed -i -e " s/atatus.app_name = \" PHP App\" /atatus.app_name = \" $APP_NAME \" /g" /nhsla/rw/atatus.ini
31+ sed -i -e " s/atatus.app_name = \" PHP App\" /atatus.app_name = \" $ATATUS_APP_NAME \" /g" /nhsla/rw/atatus.ini
3032 sed -i -e " s/atatus.release_stage = \" production\" /atatus.release_stage = \" $APP_ENV \" /g" /nhsla/rw/atatus.ini
3133 sed -i -e " s/atatus.app_version = \"\" /atatus.app_version = \" $APP_VERSION \" /g" /nhsla/rw/atatus.ini
3234fi
Original file line number Diff line number Diff line change 9797 php_server
9898}
9999
100- :2019 {
100+ :9253 {
101101 handle /metrics {
102102 metrics
103103 }
You can’t perform that action at this time.
0 commit comments