Athróga Comhshaoil
Soláthraíonn Verdaccio sraith athróg timpeallachta chun ceadanna, port nó prótacal http a mhodhnú. Seo an liosta iomlán:
Docker
Chun an t-iompar ar am rite a athrú ar rith na híomhá, seo iad liosta na n-athróg atá ar fáil.
| Athróg | Réamhshocrú | Cur síos |
|---|---|---|
| VERDACCIO_APPDIR | /opt/verdaccio | eolaire oibre an docker |
| VERDACCIO_USER_NAME | verdaccio | an t-úsáideoir córais |
| VERDACCIO_USER_UID | 10001 | an t-aitheantas úsáideora á úsáid chun ceadanna fillteán a chur i bhfeidhm |
| VERDACCIO_PORT | 4873 | an port verdaccio |
| VERDACCIO_PROTOCOL | http | an prótacal http réamhshocraithe |
| VERDACCIO_ADDRESS | 0.0.0.0 | the default address to listen on 0.0.0.0 |
VERDACCIO_HANDLE_KILL_SIGNALS
Enables gracefully shutdown, more info at the pull request #2121.
VERDACCIO_PUBLIC_URL
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.
Tá sé seo áisiúil i gcásanna den sórt sin ina dteastaíonn url dinimiciúil.
msh:
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, to change it use the variable VERDACCIO_FORWARDED_PROTO
$ VERDACCIO_FORWARDED_PROTO=CloudFront-Forwarded-Proto verdaccio --listen 5000
VERDACCIO_STORAGE_PATH
De réir réamhshocraithe, tógtar an stóráil ón gcomhad cumraíochta, ach trí úsáid a bhaint as an athróg seo is féidir é a shocrú ón athróg timpeallachta.
VERDACCIO_STORAGE_NAME
The database name for @verdaccio/local-storage is by default .verdaccio-db.json, but this can be update by using this variable.