-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(verdaccio): setup production verdaccio
- Loading branch information
Showing
16 changed files
with
3,805 additions
and
3,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,5 @@ docs/examples/** | |
|
||
.cache | ||
.nx/cache | ||
.verdacio/prod/htpasswd | ||
.verdaccio/prod/htpasswd | ||
.verdaccio/prod/storage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
strict-peer-dependencies=false | ||
auto-install-peers=true | ||
ignore-scripts=true | ||
# registry=http://localhost:4873 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ packages: | |
proxy: npmjs | ||
|
||
# log settings | ||
logs: | ||
log: | ||
type: stdout | ||
format: pretty | ||
level: warn | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Auth | ||
|
||
In config file there should be file "htpasswd" which inculde user auth. It can be generated using docker container. | ||
|
||
`docker run --rm -v $(pwd)/config:/config --entrypoint htpasswd httpd:2.4 -B -b /config/htpasswd <yourusername> <yourpassword>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# path to a directory with all packages | ||
storage: /verdaccio/storage | ||
|
||
security: | ||
api: | ||
jwt: | ||
sign: | ||
expiresIn: 365d | ||
notBefore: 1 | ||
web: | ||
sign: | ||
expiresIn: 1h | ||
|
||
web: | ||
title: Linkerry Package Registry | ||
login: true | ||
# enable: false | ||
metaScripts: | ||
- '<meta name="robots" content="noindex" />' | ||
|
||
auth: | ||
# login: true | ||
htpasswd: | ||
file: /verdaccio/conf/htpasswd | ||
max_users: -1 | ||
algorithm: bcrypt | ||
|
||
# a list of other known repositories we can talk to | ||
uplinks: | ||
npmjs: | ||
url: https://registry.npmjs.org/ | ||
maxage: 60m | ||
|
||
packages: | ||
'@linkerry/*': | ||
access: $authenticated | ||
publish: $authenticated | ||
'@*/*': | ||
access: $authenticated | ||
publish: $authenticated | ||
proxy: npmjs | ||
'**': | ||
access: $authenticated | ||
publish: $authenticated | ||
proxy: npmjs | ||
|
||
log: | ||
type: stdout | ||
format: pretty | ||
level: warn | ||
|
||
publish: | ||
allow_offline: true # set offline to true to allow publish offline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
local_package_registry:$2y$05$o3qNYY6RKrgllqwsc2nohOAT2C7NheoXv8eLTGFOXRESs2AtwqLT6 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
services: | ||
verdaccio: | ||
image: verdaccio/verdaccio | ||
container_name: verdaccio | ||
ports: | ||
- ${VIRTUAL_PORT}:${VIRTUAL_PORT} | ||
env_file: | ||
- .env | ||
environment: | ||
- VIRTUAL_PORT=${VIRTUAL_PORT} | ||
# - VERDACCIO_APPDIR=/verdaccio/conf | ||
- VERDACCIO_PORT=4873 | ||
volumes: | ||
- './storage:/verdaccio/storage' | ||
- './conf:/verdaccio/conf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ services: | |
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST} | ||
- [email protected] | ||
- VIRTUAL_PORT=${VIRTUAL_PORT} | ||
- VERDACCIO_APPDIR=/verdaccio/conf | ||
- VERDACCIO_PORT=4873 | ||
volumes: | ||
- './storage:/verdaccio/storage' | ||
- './conf:/verdaccio/conf' | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
strict-peer-dependencies=false | ||
auto-install-peers=true | ||
ignore-scripts=true | ||
# registry=${REGISTRY_USERNAME}:${REGISTRY_PASSWORD}@${REGISTRY_URL} | ||
registry=${REGISTRY_URL} | ||
//${REGISTRY_URL}/:_authToken=${REGISTRY_TOKEN} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.