2021-03-17 07:29:07 +01:00
# Environment variables
A full list of available environment variables that allow override
internal features.
2020-10-03 14:47:04 +02:00
#### VERDACCIO_LEGACY_ALGORITHM
2021-03-17 07:29:07 +01:00
2020-10-03 14:47:04 +02:00
Allows to define the specific algorithm for the token
signature which by default is `aes-256-ctr`
2021-03-17 07:29:07 +01:00
2020-10-03 14:47:04 +02:00
#### VERDACCIO_LEGACY_ENCRYPTION_KEY
2021-03-29 12:32:37 +02:00
2020-10-03 14:47:04 +02:00
By default, the token stores in the database, but using this variable allows to get it from memory
2021-03-06 18:56:45 +01:00
#### VERDACCIO_PUBLIC_URL
2021-04-02 15:59:47 +02:00
Define a specific public url for your server, it overrules the `Host` and `X-Forwarded-Proto` header if a reverse proxy is being used, it takes in account the `url_prefix` if is defined.
2021-03-06 18:56:45 +01:00
This is handy in such situations where a dynamic url is required.
2021-04-02 15:59:47 +02:00
eg:
```
VERDACCIO_PUBLIC_URL='https://somedomain.org';
url_prefix: '/my_prefix'
// url -> https://somedomain.org/my_prefix/
VERDACCIO_PUBLIC_URL='https://somedomain.org';
url_prefix: '/'
// url -> https://somedomain.org/
VERDACCIO_PUBLIC_URL='https://somedomain.org/first_prefix';
url_prefix: '/second_prefix'
// url -> https://somedomain.org/second_prefix/'
```
#### VERDACCIO_FORWARDED_PROTO
The default header to identify the protocol is `X-Forwarded-Proto` , but there are some environments which [uses something different ](https://github.com/verdaccio/verdaccio/issues/990 ), to change it use the variable `VERDACCIO_FORWARDED_PROTO`
```
$ VERDACCIO_FORWARDED_PROTO=CloudFront-Forwarded-Proto verdaccio --listen 5000
```
2021-04-25 10:08:14 +02:00
#### VERDACCIO_STORAGE_PATH
By default, the storage is taken from config file, but using this variable allows to set it from environment variable.
2021-09-08 19:06:37 +02:00
#### VERDACCIO_STORAGE_NAME
2021-10-19 08:57:56 +02:00
The database name for `@verdaccio/local-storage` is by default `.verdaccio-db.json` , but this can be update by using this variable.