-
Notifications
You must be signed in to change notification settings - Fork 1
Description
When I try to set
- MOLEY_TUNNEL_INGRESS_APPS_0_TARGET_PORT=3000
- MOLEY_TUNNEL_INGRESS_APPS_0_TARGET_HOSTNAME=localhost
- MOLEY_TUNNEL_INGRESS_APPS_0_EXPOSE_SUBDOMAIN=subdomain
e.g. via docker-compose.yml, the values are not picked up for moley and I get these errors
ERR build/main.go:12 Application failed to execute error="execRun (run.go:76): get tunnel config failed: validate (manager.go:91): validate config failed: Key: 'TunnelConfig.Ingress.Apps[0].Target.Port' Error:Field validation for 'Port' failed on the 'required' tag\nKey: 'TunnelConfig.Ingress.Apps[0].Target.Hostname' Error:Field validation for 'Hostname' failed on the 'required' tag\nKey: 'TunnelConfig.Ingress.Apps[0].Target.Protocol' Error:Field validation for 'Protocol' failed on the 'required' tag\nKey: 'TunnelConfig.Ingress.Apps[0].Expose.Subdomain' Error:Field validation for 'Subdomain' failed on the 'required' tag"
Some AI-assisted debugging led me to believe that the issue is related to parsing arrays (pardon my inexact terminology, I don't know Go very well). My attempts to patch this behavior failed (I would be willing to share the patch attempt, but you might probably be better off without further potentially misleading input o.O). Maybe this only popped up because I tried omitting the config files alltogether and have all variables injected via env variables only.
P.S. I have since moved on to a different design for my project and no longer intend to use moley. However, I figured that it might be nice to share my difficulties in this regard.
P.P.S. I consider myself decently technically adept but it took me quite some time to have a reasonable docker setup. You might want to consider facilitating the setup or improving the documentation around it (if you agree). Somehow everything is there and the quick setup instructions also had me confirm the general workflow in short time. But obtaining a stable dockerized version from it had me spent more time than I anticipated.
Best regards!