How-to - /web-vault - Custom - Docker

Greetings,

I am trying to follow the instruction here on using a custom path for /web-vault instead of the default one.

My setup is Vaultwarden on Docker Compose.

So far I was able to use the environment - WEB_VAULT_ENABLED=false to disable the default web vault.

Second I was able to obtain the static files from inside the docker container

root@fca669bd9415:/web-vault# ls -l
total 3468
-rwxr-xr-x 1 1026 users     787 Dec 18 14:05 182.ef118a836aae4f655003.js
-rwxr-xr-x 1 1026 users    2901 Dec 18 14:05 182.ef118a836aae4f655003.js.map
drwxr-xr-x 1 1026 users      54 Dec 18 14:05 404
-rwxr-xr-x 1 1026 users    1864 Dec 18 14:05 404.html
-rwxr-xr-x 1 1026 users   97105 Dec 18 14:05 584.238f402a694e2a33f299.js
-rwxr-xr-x 1 1026 users     383 Dec 18 14:05 584.238f402a694e2a33f299.js.LICENSE.txt
-rwxr-xr-x 1 1026 users  233609 Dec 18 14:05 584.238f402a694e2a33f299.js.map
-rwxr-xr-x 1 1026 users   79316 Dec 18 14:05 650.62b87073d6547a6b7fd4.js
-rwxr-xr-x 1 1026 users   96936 Dec 18 14:05 650.62b87073d6547a6b7fd4.js.map
-rwxr-xr-x 1 1026 users   36504 Dec 18 14:05 754.1655b970c4e9dab5fc90.js
-rwxr-xr-x 1 1026 users   38971 Dec 18 14:05 754.1655b970c4e9dab5fc90.js.map
-rwxr-xr-x 1 1026 users   50237 Dec 18 14:05 812.59ccc0f03ed365576697.js
-rwxr-xr-x 1 1026 users   68362 Dec 18 14:05 812.59ccc0f03ed365576697.js.map
-rwxr-xr-x 1 1026 users  401087 Dec 18 14:05 933.6ce03ae789e31b21134d.js
-rwxr-xr-x 1 1026 users      51 Dec 18 14:05 933.6ce03ae789e31b21134d.js.LICENSE.txt
-rwxr-xr-x 1 1026 users 1464361 Dec 18 14:05 933.6ce03ae789e31b21134d.js.map
-rwxr-xr-x 1 1026 users  159301 Dec 18 14:05 977.30cfdbe38986b8ddb470.js
-rwxr-xr-x 1 1026 users  438914 Dec 18 14:05 977.30cfdbe38986b8ddb470.js.map
drwxr-xr-x 1 1026 users     686 Dec 18 14:05 app
-rwxr-xr-x 1 1026 users     276 Dec 18 14:05 app-id.json
-rwxr-xr-x 1 1026 users     234 Dec 18 14:05 browserconfig.xml
-rwxr-xr-x 1 1026 users     358 Dec 18 14:05 ca8f66ed7fccfcd0809f.json
-rwxr-xr-x 1 1026 users     507 Dec 18 14:05 captcha-connector.html
-rwxr-xr-x 1 1026 users     765 Dec 18 14:05 captcha-mobile-connector.html
drwxr-xr-x 1 1026 users    1364 Dec 18 14:05 connectors
-rwxr-xr-x 1 1026 users     574 Dec 18 14:05 duo-connector.html
-rwxr-xr-x 1 1026 users   56258 Dec 18 14:05 encrypt-worker.fec52db855ae6d6aca09.js
-rwxr-xr-x 1 1026 users  180865 Dec 18 14:05 encrypt-worker.fec52db855ae6d6aca09.js.map
-rwxr-xr-x 1 1026 users   34494 Dec 18 14:05 favicon.ico
drwxr-xr-x 1 1026 users     602 Dec 18 14:05 fonts
drwxr-xr-x 1 1026 users    1424 Dec 18 14:05 images
-rwxr-xr-x 1 1026 users    1240 Dec 18 14:05 index.html
drwxr-xr-x 1 1026 users     270 Dec 18 14:05 locales
-rwxr-xr-x 1 1026 users     358 Dec 18 14:05 manifest.json
drwxr-xr-x 1 1026 users      94 Dec 18 14:05 scripts
-rwxr-xr-x 1 1026 users    1031 Dec 18 14:05 sso-connector.html
-rwxr-xr-x 1 1026 users     474 Dec 18 14:05 theme_head.5f24ba8d7aa944e6f52b.js
-rwxr-xr-x 1 1026 users    1802 Dec 18 14:05 theme_head.5f24ba8d7aa944e6f52b.js.map
-rwxr-xr-x 1 1026 users      27 Dec 18 14:05 version.json
-rwxr-xr-x 1 1026 users      23 Dec 18 14:06 vw-version.json
-rwxr-xr-x 1 1026 users     582 Dec 18 14:05 webauthn-connector.html
-rwxr-xr-x 1 1026 users    1079 Dec 18 14:05 webauthn-fallback-connector.html
-rwxr-xr-x 1 1026 users    1018 Dec 18 14:05 webauthn-mobile-connector.html

And I pointed the volume from vaultwarden to read that as static web vault path

third, I was able to run another nginx server and use the index.html and I could see the login page which is good.

but then, I get the 404 as it doesn’t maybe know where go after?! not sure.

Any ideas?

Thanks