Comments (6)
According to the LEGO documentation it seems you are using the wrong configuration for your private key file. Your current configuration points to the path of the private key file, but you are trying to point at a file. However this can easily be fixed:
The environment variable names can be suffixed by _FILE to reference a file instead of a value. More information here.
So your configuration should probably be something like this:
log_level: DEBUG
access_logs: true
forwarded_headers_insecure: true
dynamic_configuration_path: /config/traefik/
letsencrypt:
enabled: true
email: [email protected]
challenge_type: dnsChallenge
provider: transip
env_vars:
- TRANSIP_ACCOUNT_NAME=redacted
- TRANSIP_PRIVATE_KEY_FILE=/config/traefik/transip.key
Notice the small difference in the env_vars
? That should probably fix it. Otherwise you could also probably get away with: - TRANSIP_PRIVATE_KEY_FILE=/config/traefik/
.
I also tried messing around with the environment variables to ensure that all works correctly:
log_level: INFO
access_logs: false
forwarded_headers_insecure: true
dynamic_configuration_path: /config/extras/traefik
letsencrypt:
enabled: true
email: [email protected]
challenge_type: dnsChallenge
provider: cloudflare
env_vars:
- CF_DNS_API_TOKEN=some-cf-api-token
- SECOND_ENV_VAR=some_value
$ printenv
HOSTNAME=32de6d38-traefik
PWD=/
TZ=Europe/Amsterdam
HOME=/root
LANG=C.UTF-8
__BASHIO_BIN=/usr/lib/bashio/bashio
CF_DNS_API_TOKEN=some-cf-api-token
SECOND_ENV_VAR=some_value
HASSIO_TOKEN=long-hex-string
TERM=xterm
SUPERVISOR_TOKEN=long-hex-string
SHLVL=2
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_=/bin/printenv
But it seems it does work correctly. Also switching around the environment variables doesn't make a difference. Both are picked up correctly by the add-on. So my guess it's the small difference in configuration on your side.
Please let me know if this fixes your issue.
from home-assistant-addons.
@GoSpursGoNL Did my post above help you solve your issue?
from home-assistant-addons.
For the moment I switched to DuckDNS. Hopefully this weekend I can test your addon again.
from home-assistant-addons.
Unfortunately still the same error, thanks for thinking along though Alex. I'll stick with duckdns for the moment since it also has handy dynamic dns functionality.
from home-assistant-addons.
@GoSpursGoNL
I'm sorry you couldn't get it to work. I would like to see which configuration you have tried to use. Perhaps that could help me with future issues. Otherwise I'm still happy to help you out if you want.
from home-assistant-addons.
I used the configuration you provided, the error was the same. But for the moment I am happy with duckdns. Have a good weekend!
from home-assistant-addons.
Related Issues (20)
- Configuration parameter secret_file is not working HOT 3
- Addon fails to start with option access_logs: true HOT 1
- Question for Rclone HOT 4
- sync Google photos HOT 1
- Reload supervsior after secrets update HOT 4
- Upgrade Traefik HOT 2
- ModSecurity plugin HOT 1
- Rclone Media Sources instead backups HOT 1
- proxy pass HOT 2
- Make Rclone addon local folder configurable HOT 5
- What about Bitwarden secrets for ESPHome? HOT 2
- Addon stops with a strange error on config files ! HOT 2
- Traefik stopped working after updating to v4.1.2 HOT 2
- Traefik addon will not install on supervised HA (ARM architecture) HOT 11
- File provider at /config/traefik/ is no longer accessible HOT 1
- Default Bitwarden server is not working anymore HOT 4
- Documentation: Add example which uses custom fields
- Migrate Bitwarden CLI to new repo
- Traefik: different port for specific sub domain HOT 3
- Access log location HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-addons.