# Use the webgui server without running a backend server?

**URL:** <https://kopia.discourse.group/t/use-the-webgui-server-without-running-a-backend-server/2632>\
**Category:** General Topics\
**Created:** [February 2, 2024, 7:28pm UTC](https://kopia.discourse.group/t/use-the-webgui-server-without-running-a-backend-server/2632 "2024-02-02T19:28:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![97b4958b055b](https://avatars.discourse-cdn.com/v4/letter/9/47e85d/32.png) [@97b4958b055b](https://kopia.discourse.group/u/97b4958b055b)\
**Post date:** [March 22, 2025, 2:00am UTC](https://kopia.discourse.group/t/use-the-webgui-server-without-running-a-backend-server/2632/3 "2025-03-22T02:00:18Z")

</div>

> [@MrOlocet](#):
>
> Also, it seems I need to set the repository pwd via the container variable KOPIA\_PASSWORD, which I don’t like, I don’t want my container config to contain credentials. Is there any way to supply the password in a file, or by other (automated) means on container start? Reading from console is not possible because of the docker setup.

I don’t see why not. It’d require manual intervention before you booted the docker image, however. I’d use `gocryptfs` for this. It’s nice & lightweight. It also happens to use the same cryptography as Kopia.

After you remove whatever is hard coded for `KOPIA_PASSWORD` from the docker compose file, subsequent launches should just be fired via `$HOME/bin/get-creds-kopia.sh` (you might want to set a bash alias).

```auto
#!/usr/bin/env bash

# the path to the encrypted gocryptfs dir
CRED_ENC="/path/cred.enc"

# path where unencrypted creds will be mounted
MNT="/media/vault/cred"

# create the mount point if it doesn't exist
# otherwise continue
mkdir -p "$MNT"

# mount the encrypted dir to the mount point
# this will prompt you for the password
gocryptfs "$CRED_ENC" "$MNT"

# read the path to the mounted, unencrypted creds for kopia
# ensure there is only _one_ 'kopia.YOURPASSWORD' file
CRED_MNT="$(ls $MNT/kopia.*)"

# extract the password from the filename
export KOPIA_PASSWORD="$(printf $CRED_MNT | cut -d '.' -f 2)"

# unmount the cred mount point now that the password is exported
umount "$MNT"

# don't use 'exit 0' or it will revoke the exported variable after successfully exiting.
# you could try the command to launch the docker image here, too. if you do, be
# sure to end the command with ' &' (note the space) to return control of the shell
# back to you.

```

Then fire the docker image as usual. That should do it (note: I do not use Docker).

> **[GitHub - rfjakob/gocryptfs: Encrypted overlay filesystem written in Go](https://github.com/rfjakob/gocryptfs)**
>
> Encrypted overlay filesystem written in Go

---

_[View the full topic](https://kopia.discourse.group/t/use-the-webgui-server-without-running-a-backend-server/2632)._
