sqlboi
08/29/2023, 2:51 PMpodman run \
-it \
--name prefect \
-v /home/admin/apps/prefect/.env:/app/.env \
-v /home/admin/apps/prefect/.prefect:/root/.prefect \
-p 4200:4200 \
prefect \
/bin/bash
with this nginx:
# prefect
location /prefect/ {
proxy_pass <http://10.235.77.21:4200>;
proxy_set_header X-Script-Name /prefect;
proxy_set_header Host $host;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
i set the envs:
PREFECT_PROFILE='default'
PREFECT_API_URL='<http://127.0.0.1:4200/api>' (from profile)
PREFECT_UI_API_URL='<http://127.0.0.1>' (from profile)
i had tried all kinds of combos with add /prefect to the urls but no diceSanz Al
08/29/2023, 3:02 PMPREFECT_SERVER_API_HOST="0.0.0.0"
instead of 127.0.0.1
all around?sqlboi
08/29/2023, 3:03 PMprefect server start --host 0.0.0.0
but let me try thatsqlboi
08/29/2023, 3:04 PMsqlboi
08/29/2023, 3:04 PM10.0.2.100 - - [29/Aug/2023:14:46:47 +0000] "GET /prefect/ HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-"
2023/08/29 14:46:47 [error] 30#30: *211 open() "/usr/share/nginx/html/assets/index-02a86edf.js" failed (2: No such file or directory), client: 10.0.2.100, server: 10.235.77.21, request: "GET /assets/index-02a86edf.js HTTP/1.1", host: "10.235.77.21", referrer: "<http://10.235.77.21/prefect/>"
10.0.2.100 - - [29/Aug/2023:14:46:47 +0000] "GET /assets/index-02a86edf.js HTTP/1.1" 404 555 "<http://10.235.77.21/prefect/>" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-"
2023/08/29 14:46:47 [error] 30#30: *213 open() "/usr/share/nginx/html/assets/index-c3bd5f27.css" failed (2: No such file or directory), client: 10.0.2.100, server: 10.235.77.21, request: "GET /assets/index-c3bd5f27.css HTTP/1.1", host: "10.235.77.21", referrer: "<http://10.235.77.21/prefect/>"
10.0.2.100 - - [29/Aug/2023:14:46:47 +0000] "GET /assets/index-c3bd5f27.css HTTP/1.1" 404 555 "<http://10.235.77.21/prefect/>" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-"
sqlboi
08/29/2023, 3:06 PMSanz Al
08/29/2023, 3:08 PMprefect config set PREFECT_SERVER_API_HOST="0.0.0.0"
prefect config set PREFECT_UI_API_URL="<http://10.235.77.21:4200/api>"
prefect config set PREFECT_UI_URL="<http://10.235.77.21:4200>"
sqlboi
08/29/2023, 3:10 PMSanz Al
08/29/2023, 3:12 PM<http://10.235.77.21:4200>
sqlboi
08/29/2023, 3:15 PMsqlboi
08/29/2023, 3:16 PMSanz Al
08/29/2023, 3:16 PMsqlboi
08/29/2023, 6:00 PMsqlboi
08/29/2023, 6:17 PM