Skip to content

Commit d278f1b

Browse files
authored
chore: relocate website for netlify migration (verdaccio#2323)
1 parent 0f0cbf2 commit d278f1b

File tree

1,621 files changed

+128864
-386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,621 files changed

+128864
-386
lines changed

.all-contributorsrc

-245
This file was deleted.

.prettierignore

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
**/pnpm-lock.yaml
77
**/verdaccio-corrupted.db.json
88
**/wrong.package.json
9-
/website/.cache/
10-
/website/crowdin/
11-
/website/public/
12-
/website/src/dictionaries/
9+
crowdin.yaml
10+
/docs/website
11+
/website/*
12+
/website/translated_docs/
1313
CHANGELOG.md
1414
CONTRIBUTORS.md
1515
node_modules/
@@ -22,4 +22,4 @@ docker-examples/v5/reverse_proxy/nginx/relative_path/storage/*
2222
docker-examples/
2323
build/
2424
.vscode/
25-
.github/
25+
.github/

crowdin.yaml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
project_identifier_env: CROWDIN_VERDACCIO_PROJECT_ID
2+
api_key_env: CROWDIN_VERDACCIO_API_KEY
3+
base_path: './'
4+
preserve_hierarchy: true
5+
commit_message: 'docs(website): new translation for %original_file_name% in %language%'
6+
append_commit_message: false
7+
8+
files:
9+
-
10+
source: '/docs/website/*.md'
11+
translation: '/website/translated_docs/%locale%/%original_file_name%'
12+
languages_mapping: &anchor
13+
locale:
14+
'af': 'af'
15+
'ar': 'ar'
16+
'bs-BA': 'bs-BA'
17+
'ca': 'ca'
18+
'cs': 'cs'
19+
'da': 'da'
20+
'de': 'de'
21+
'el': 'el'
22+
'es-ES': 'es-ES'
23+
'fa': 'fa-IR'
24+
'fi': 'fi'
25+
'fr': 'fr-FR'
26+
'he': 'he'
27+
'hu': 'hu'
28+
'id': 'id-ID'
29+
'it': 'it-IT'
30+
'ja': 'ja'
31+
'ko': 'ko'
32+
'mr': 'mr-IN'
33+
'nl': 'nl'
34+
'no': 'no-NO'
35+
'pl': 'pl-PL'
36+
'pt-BR': 'pt-BR'
37+
'pt-PT': 'pt-PT'
38+
'ro': 'ro'
39+
'ru': 'ru-RU'
40+
'sk': 'sk-SK'
41+
'sr-SP': 'sr-SP'
42+
'sr-CS': 'sr-CS'
43+
'sv-SE': 'sv-SE'
44+
'tr': 'tr'
45+
'uk': 'uk'
46+
'vi': 'vi-VN'
47+
'yo-NG': 'yo-NG'
48+
'zh-CN': 'zh-CN'
49+
'zh-TW': 'zh-TW'
50+
-
51+
source: '/website/versioned_docs/**/*.md'
52+
translation: '/website/translated_docs/%locale%/**/%original_file_name%'
53+
languages_mapping: *anchor
54+
-
55+
source: '/website/i18n/en.json'
56+
translation: '/website/i18n/%locale%.json'
57+
languages_mapping: *anchor

docs/website/amazon.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
id: amazon
3+
title: "Amazon Web Services"
4+
---
5+
6+
This document describes several approaches for deploying Verdaccio in the AWS cloud.
7+
8+
## EC2
9+
10+
[CloudFormation template for deploying this stack.](https://github.com/verdaccio/verdaccio/blob/master/contrib/aws/cloudformation-ec2-efs.yaml)
11+
12+
Architecture:
13+
14+
```
15+
Clients
16+
|
17+
| (HTTPS)
18+
v
19+
Application Load Balancer
20+
|
21+
| (HTTP)
22+
v
23+
EC2 Auto Scaling Group (Amazon Linux 2)
24+
Docker image (Verdaccio)
25+
|
26+
| (NFS)
27+
v
28+
Elastic File System
29+
```
30+
31+
Architecture notes:
32+
* Deploy this stack into the region closest to your users for maximum performance.
33+
* We use an auto scaling group primarily for self-healing. The system requirements of Verdaccio are pretty low, so it's unlikely you'll need multiple instances to handle traffic load.
34+
* Because Amazon Linux 2 doesn't include Node, we run Verdaccio as a Docker image rather than natively on the instance. This is faster and more secure than relying on third party package sources for Node.
35+
* Elastic File System is cheap and stateful, and works across AZs. An alternative would be the [third-party S3 storage plugin](https://github.com/remitly/verdaccio-s3-storage).
36+
* For backup, use AWS Backup
37+
38+
Estimated monthly cost for a small installation (in us-east-1):
39+
* ALB (1 LCU average): $22.265/mo
40+
* EC2 (t3.nano): $3.796/mo
41+
* EBS (8gb): $0.80/mo
42+
* EFS (5gb): $1.5/mo
43+
* Data transfer: (10gb): $0.9/mo
44+
* **TOTAL:** Under $30/mo
45+
46+
## ECS
47+
48+
You can deploy Verdaccio as a task with an [ECS Volume](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html) for persistent storage.
49+
50+
Note: Fargate doesn't support persistent volumes, so you have to use the S3 storage plugin.
51+
52+
## EKS
53+
54+
See the documentation pages on [Kubernetes](kubernetes) and [Docker](docker).

0 commit comments

Comments
 (0)