mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 19:06:55 +00:00
d92dfbbdb7
* add server root url * [Feature Request] Add proxy_pass for root url other than / * [Feature Request] Add proxy_pass for root url other than / * add support for web sub path * add support for web sub path * use default conf instead of created a custom one * code reivew: move cp command in if block * Add commented env var in the docker-compose file Co-authored-by: Zied ANDOLSI <zandolsi@prophesee.ai>
21 lines
759 B
Plaintext
Executable File
21 lines
759 B
Plaintext
Executable File
location /${CLEARML_SERVER_SUB_PATH} {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://localhost:80;
|
|
rewrite /${CLEARML_SERVER_SUB_PATH}/(.*) /$1 break;
|
|
}
|
|
|
|
location /${CLEARML_SERVER_SUB_PATH}/api {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://localhost:80/api;
|
|
rewrite /${CLEARML_SERVER_SUB_PATH}/api/(.*) /api/$1 break;
|
|
}
|
|
|
|
location /${CLEARML_SERVER_SUB_PATH}/files {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://localhost:80/files;
|
|
rewrite /${CLEARML_SERVER_SUB_PATH}/files/(.*) /files/$1 break;
|
|
rewrite /${CLEARML_SERVER_SUB_PATH}/files /files/ break;
|
|
} |