You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to deploy both frontend and backend in a kuberenetes setup( bare metal - on prem) ,
I faced the error "OSError - Address family not supported by protocol" because it was thinking i gave an IPv6 address but it was just http ingress url of backend deployment pod.�I had a very hard time finding/modifying the api_url in rx.config as per documentation, setting it with IP address of machine or the hostname where the service needs to run, i somehow got it fixed by using kubernetes way of accessing pods via service host name like deployment-svc.namespace.cluster.local:port
Now got this running fine and exposed the backend ingress to a url lets say "my-app-backend.example.com" and what irks me i have to put this again in api_url in the frontend docker build stage and change it back to deployment-svc.namespace.cluster.local:port while doing backend docker build stage
I tried putting an env variable API_URL while building docker for frontend but it does not take from env. I find this integration tedious for self hosted setup. Am i missing anything here. ��Thank you.
Update:
Only thing that works is to leave the default - rx.config untouched except app name rx.Config(app_name="myapp", api_url="http://localhost:8000")
And use env variable REFLEX_API_URL=https://yoursite.example.com
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to deploy both frontend and backend in a kuberenetes setup( bare metal - on prem) ,
I faced the error "OSError - Address family not supported by protocol" because it was thinking i gave an IPv6 address but it was just http ingress url of backend deployment pod.�I had a very hard time finding/modifying the api_url in rx.config as per documentation, setting it with IP address of machine or the hostname where the service needs to run, i somehow got it fixed by using kubernetes way of accessing pods via service host name like deployment-svc.namespace.cluster.local:port
Now got this running fine and exposed the backend ingress to a url lets say "my-app-backend.example.com" and what irks me i have to put this again in api_url in the frontend docker build stage and change it back to deployment-svc.namespace.cluster.local:port while doing backend docker build stage
I tried putting an env variable API_URL while building docker for frontend but it does not take from env. I find this integration tedious for self hosted setup. Am i missing anything here. ��Thank you.
Update:
Only thing that works is to leave the default - rx.config untouched except app name rx.Config(app_name="myapp", api_url="http://localhost:8000")
And use env variable REFLEX_API_URL=https://yoursite.example.com
Looks like documentation needs change.
Beta Was this translation helpful? Give feedback.
All reactions