Skip to content
Discussion options

You must be logged in to vote

I found the fix:

  1. Caddyfile:
https://192.168.10.169:8001 {
	reverse_proxy localhost:8000
}

https://192.168.10.169:3001 {
	reverse_proxy localhost:3000
}
  1. rxconfig.py:
config = rx.Config(
    cors_allowed_origins=[
        "http://localhost:3000",
        "https://192.168.3.144:3001",
    ],
    api_url="https://192.168.3.144:8001",
)
  1. run:
reflex run
caddy run --config Caddyfile

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by suc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant