APP_TRUSTED_PROXIES on docker image
Please confirm you have done the following before posting your bug report:
- I have enabled debug mode
- I have read checked the Common Issues page
Describe the bug The only way to modify APP_TRUSTED_PROXIES of snipe-IT on docker is to change the config/trustedproxy.php after the image is running.
To Reproduce Steps to reproduce the behavior:
- Put APP_TRUSTED_PROXIES on your docker env file
- docker exec -it <container_name> cat .env
- see that there is actually no APP_TRUSTED_PROXIES mentioned and/or taken from the docker env file
Expected behavior the docker image .env should reflect as much as possible as deployments using other methods. it's just confusing for someone like me who utilize services such as cloudflare SSL, and extensive number of reverse proxies to connect to the snipe-IT. and having to come in the container and change manually everytime is a little bit inefficient and time consuming
Screenshots
# --------------------------------------------
# REQUIRED: BASIC APP SETTINGS
# --------------------------------------------
#APP_ENV=develop
#APP_DEBUG=false
#APP_KEY=Change_this_key_or_snipe_will_get_ya
#APP_URL=http://127.0.0.1:32782
#APP_TIMEZONE=US/Pacific
#APP_LOCALE=en
# --------------------------------------------
# REQUIRED: DATABASE SETTINGS
# --------------------------------------------
DB_CONNECTION=mysql
DB_HOST=${MYSQL_PORT_3306_TCP_ADDR}
DB_PORT=${MYSQL_PORT_3306_TCP_PORT}
DB_DATABASE=${MYSQL_DATABASE}
DB_USERNAME=${MYSQL_USER}
DB_PASSWORD=${MYSQL_PASSWORD}
DB_PREFIX=null
DB_DUMP_PATH='/usr/bin'
# --------------------------------------------
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
# --------------------------------------------
MAIL_DRIVER=smtp
MAIL_HOST=${MAIL_PORT_587_TCP_ADDR}
MAIL_PORT=${MAIL_PORT_587_TCP_PORT}
MAIL_USERNAME=${MAIL_ENV_USERNAME}
MAIL_PASSWORD=${MAIL_ENV_PASSWORD}
MAIL_ENCRYPTION=${MAIL_ENV_ENCRYPTION}
MAIL_FROM_ADDR=${MAIL_ENV_FROM_ADDR}
MAIL_FROM_NAME=${MAIL_ENV_FROM_NAME}
MAIL_REPLYTO_ADDR=${MAIL_ENV_FROM_ADDR}
MAIL_REPLYTO_NAME=${MAIL_ENV_FROM_NAME}
# --------------------------------------------
# REQUIRED: IMAGE LIBRARY
# This should be gd or imagick
# --------------------------------------------
IMAGE_LIB=gd
# --------------------------------------------
# OPTIONAL: SESSION SETTINGS
# --------------------------------------------
SESSION_LIFETIME=12000
EXPIRE_ON_CLOSE=false
ENCRYPT=false
COOKIE_NAME=snipeit_session
COOKIE_DOMAIN=null
SECURE_COOKIES=false
# --------------------------------------------
# OPTIONAL: CACHE SETTINGS
# --------------------------------------------
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=syncServer (please complete the following information):
- Snipe-IT Docker:v4.6.15
- OS: Docker
Additional context
- Is this a fresh install or an upgrade?
- Fresh
- What OS and web server you're running Snipe-IT on
- OpenSUSE Kubicmaster, Kubernetes + cri-o
- What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
- Docker
- Include what you've done so far in the installation, and if you got any error messages along the way.
- pull the image, configure environment variables for snipe-it and mysql, configure manually inside the container to accept all proxies
- Indicate whether or not you've manually edited any data directly in the database
- not database, but config files at config/trustedproxy.php
Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.
Source: grokability/snipe-it