-
Notifications
You must be signed in to change notification settings - Fork 28
WIP: Feature to use custom traefik config #31
WIP: Feature to use custom traefik config #31
Conversation
|
@yamalight Currently config changes for traefik aren't watched at all. If this is needed I would suggest using some kind of nodemon script to restart the complete server. Extending the current config reload mechanism would be quite complicated. |
|
@anbraten thanks for your work! I'll try to have a look in the next few days |
|
Alright, had a look.
Thoughts? |
|
Traefik has two parts of config. Static file But I would like to be able to use dnschallenge instead of the normal httpChallenge. Example:server.config.yml:Generated
|
|
Hmm, that's fair enough 🤔 |
Thanks for accepting new features. PS: Please be careful with the merging before WIP tag / title is removed. 😉 |
|
@anbraten whoops, I assumed you have finished with it - or am I wrong here? 😅 |
|
Hey, just a friendly heads-up: it appears as though this has been merged and the docs haven't caught up with it yet. I was so confused for a while because The only clue I got was that there was a I did a Did manage to finally get this working locally though with the following in api:
insecure: true
dashboard: trueAnd the following start command: #!/bin/bash
EXOFRAME_SUBDOMAIN="exoframe"
DOMAIN="mysite.localhost"
docker run -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/exoframe-server:/root/.exoframe \
-v ~/.ssh/authorized_keys:/root/.ssh/authorized_keys:ro \
-e EXO_PRIVATE_KEY=my-private-key \
--label traefik.enable=true \
--label "traefik.http.routers.api.rule=Host(\`traefik.${EXOFRAME_SUBDOMAIN}.${DOMAIN}\`)" \
--label traefik.http.routers.api.service=api@internal \
--label "traefik.http.routers.exoframe-server.rule=Host(\`${EXOFRAME_SUBDOMAIN}.${DOMAIN}\`)" \
--restart always \
--name exoframe-server \
exoframe/serverThe dashboard should now be available at http://traefik.exoframe.mysite.localhost I'm not entirely sure why it has a It's worth noting that these two lines can both be set in the --label "traefik.http.routers.api.rule=Host(\`traefik.${EXOFRAME_SUBDOMAIN}.${DOMAIN}\`)" \
--label traefik.http.routers.api.service=api@internal \ |
|
@GavinRay97 you are totally right! I somehow missed the docs updates. |

Add possibility to adjust traefik settings with config file.
Issue: Supply Traefik config file exoframejs/exoframe#139
Standard way:
traefik.ymltraefik.ymltraefik.ymlDisabled config generation:
This can be done by setting:
traefikDisableGeneratedConfig: falseinserver.config.ymltraefik.ymlTODO / Current problems
letsencryptwill not be removed after being once added