Skip to content

Configuration

Grigory Efimov edited this page Jun 24, 2024 · 3 revisions

Warning

The .env file is generated automatically. It is based on the .env.common file, which is overridden or extended by variables from the .env.override file.

Version control

By default, we use "prod" image version for any-sync-* daemons. Also you can use "stage1" or "latest" verions:

# for use stage1 version
ln -F -s .env.override.stage1 .env.override
# for use latest version
ln -F -s .env.override.latest .env.override

# restart after changes
make restart

external listen host

By default, we use only the listen address 127.0.0.1, which is sufficient for running tests and a local client. If you need to connect external clients, please add "EXTERNAL_LISTEN_HOSTS" in .env.override file. Use spaces separation, multiline is not supported. For example:

EXTERNAL_LISTEN_HOSTS=<yourExternalIp1> <yourExternalIp2 ...

restart after changes

# restart after changes
make restart

custom storage directory

to change the file storage directory, you need to add the parameter STORAGE_DIR to the .env.override file

clean setup

echo "STORAGE_DIR=/path/to/your/directory" >> .env.override
make start

existing setup

if you have already run the self-hosted server, you need to transfer the files beforehand:

make stop
echo "STORAGE_DIR=/path/to/your/directory" >> .env.override
mv ./storage /path/to/your/directory
make start
Clone this wiki locally