Dmitry Beresnev commited on
Commit
aade3ff
·
1 Parent(s): fdc7a1e

fix proxy config

Browse files
Files changed (2) hide show
  1. Caddyfile +5 -1
  2. app.py +2 -2
Caddyfile CHANGED
@@ -1,7 +1,11 @@
1
  :7860
2
 
3
  handle_path /openclaw/* {
4
- reverse_proxy 127.0.0.1:18791
 
 
 
 
5
  }
6
 
7
  handle {
 
1
  :7860
2
 
3
  handle_path /openclaw/* {
4
+ reverse_proxy 127.0.0.1:18791 127.0.0.1:18789 {
5
+ lb_policy first
6
+ lb_try_duration 30s
7
+ lb_try_interval 500ms
8
+ }
9
  }
10
 
11
  handle {
app.py CHANGED
@@ -572,12 +572,12 @@ with std_ui_status_col:
572
 
573
  with std_ui_embed_col:
574
  public_ui_url = with_token(OPENCLAW_STANDARD_UI_PUBLIC_URL, gateway_token)
575
- if public_ui_url:
576
  st.caption(f"Embedded URL: {mask_token_in_url(public_ui_url)}")
577
  components.iframe(public_ui_url, height=560, scrolling=True)
578
  st.markdown(f"[Open Standard UI]({public_ui_url})")
579
  else:
580
- st.info("Standard UI is not reachable yet. Start gateway and refresh.")
581
 
582
  st.divider()
583
 
 
572
 
573
  with std_ui_embed_col:
574
  public_ui_url = with_token(OPENCLAW_STANDARD_UI_PUBLIC_URL, gateway_token)
575
+ if public_ui_url and proxy_ok:
576
  st.caption(f"Embedded URL: {mask_token_in_url(public_ui_url)}")
577
  components.iframe(public_ui_url, height=560, scrolling=True)
578
  st.markdown(f"[Open Standard UI]({public_ui_url})")
579
  else:
580
+ st.info("Standard UI proxy is not ready yet. Wait 10-30s and refresh.")
581
 
582
  st.divider()
583