Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [wger] ENV not passing in #1570

Open
stevetheman1031 opened this issue Sep 14, 2024 · 1 comment
Open

🐛 [wger] ENV not passing in #1570

stevetheman1031 opened this issue Sep 14, 2024 · 1 comment
Labels
bug Something isn't working stale Element will be closed automatically

Comments

@stevetheman1031
Copy link

stevetheman1031 commented Sep 14, 2024

Description

Im trying to pass in some ENV variables and they are passing in

Reproduction steps

What got me to this conclusion is that I having the error WARNING 2024-09-13 23:50:56,949 log Forbidden (Origin checking failed - https://example.com does not match any trusted origins.): /en/user/login so i added TZ: Europe/Paris and it still said in logs TZ is America/Chicago

My Yaml at /config/addons_config/wger/config.yaml

DJANGO_DEBUG: True
DEBUG: True
SITE_URL: 'https://example.com'
EMAIL_USE_TLS: True
EMAIL_HOST: 'smtp.gmail.com'
EMAIL_PORT: 587
EMAIL_HOST_USER: 'example@gmail.com'
EMAIL_HOST_PASSWORD: 'password'
DEFAULT_FROM_EMAIL: 'example@gmail.com'
SERVER_EMAIL: 'wexample@gmail.com'
ALLOWED_HOSTS:
  - "example.com"
  - "localhost"
  - "10.10.0.0/24"
  - "0.0.0.0/0"
CSRF_TRUSTED_ORIGINS:
  - "example.com"
SECURE_PROXY_SSL_HEADER: ('HTTP_X_FORWARDED_PROTO', 'https')
USE_X_FORWARDED_HOST: True
X_FORWARDED_PROTO_HEADER_SET: True
# Enforce secure cookies and SSL redirects
CSRF_COOKIE_SECURE: True
SESSION_COOKIE_SECURE: True
SECURE_SSL_REDIRECT: True
TZ: Europe/Paris

Addon Logs

-----------------------------------------------------------
 Add-on: Wger
 manage your personal workouts, weight and diet plans
-----------------------------------------------------------
 Add-on version: 2.3-dev
 You are running the latest version of this add-on.
 System: Home Assistant OS 13.1  (amd64 / generic-x86-64)
 Home Assistant Core: 2024.9.1
 Home Assistant Supervisor: 2024.09.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
/etc/cont-init.d/00-global_var.sh: executing
CONFIG_LOCATION='/config/addons_config/wger/config.yaml'
Timezone set from Etc/UTC to America/Chicago
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config.yaml directory

Load environment variables from /config/addons_config/wger/config.yaml if existing
If accessing the file with filebrowser it should be mapped to /homeassistant/addons_config/wger/config.yaml
---------------------------------------------------------
Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables

DJANGO_DEBUG='True'
DEBUG='True'
SITE_URL='https://example.com'
EMAIL_USE_TLS='True'
EMAIL_HOST='smtp.gmail.com'
EMAIL_PORT='587'
EMAIL_HOST_USER='example@example.com'
EMAIL_HOST_PASSWORD='example'
DEFAULT_FROM_EMAIL='example@example.com'
SERVER_EMAIL='example@example.com'
SECURE_PROXY_SSL_HEADER='(HTTP_X_FORWARDED_PROTO, https)'
USE_X_FORWARDED_HOST='True'
X_FORWARDED_PROTO_HEADER_SET='True'
CSRF_COOKIE_SECURE='True'
SESSION_COOKIE_SECURE='True'
SECURE_SSL_REDIRECT='True'
TZ='Europe/Paris'

Architecture

amd64

OS

HAos

@stevetheman1031 stevetheman1031 added the bug Something isn't working label Sep 14, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Element will be closed automatically label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Element will be closed automatically
Projects
None yet
Development

No branches or pull requests

1 participant