mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
npm install backend
This commit is contained in:
@@ -19,10 +19,6 @@ POSTGRES_DB=infisical
|
|||||||
# Redis
|
# Redis
|
||||||
REDIS_URL=redis://redis:6379
|
REDIS_URL=redis://redis:6379
|
||||||
|
|
||||||
# Optional credentials for MongoDB container instance and Mongo-Express
|
|
||||||
MONGO_USERNAME=root
|
|
||||||
MONGO_PASSWORD=example
|
|
||||||
|
|
||||||
# Website URL
|
# Website URL
|
||||||
# Required
|
# Required
|
||||||
SITE_URL=http://localhost:8080
|
SITE_URL=http://localhost:8080
|
||||||
|
|||||||
@@ -16,49 +16,7 @@ git checkout -b MY_BRANCH_NAME
|
|||||||
## Set up environment variables
|
## Set up environment variables
|
||||||
|
|
||||||
|
|
||||||
Start by creating a .env file at the root of the Infisical directory then copy the contents of the file below into the .env file.
|
Start by creating a .env file at the root of the Infisical directory then copy the contents of the file linked [here](https://github.com/Infisical/infisical/blob/main/.env.example). View all available [environment variables](https://infisical.com/docs/self-hosting/configuration/envars) and guidance for each.
|
||||||
|
|
||||||
<Accordion title=".env file content">
|
|
||||||
```env
|
|
||||||
# Keys
|
|
||||||
# Required key for platform encryption/decryption ops
|
|
||||||
ENCRYPTION_KEY=6c1fe4e407b8911c104518103505b218
|
|
||||||
|
|
||||||
# JWT
|
|
||||||
# Required secrets to sign JWT tokens
|
|
||||||
JWT_SIGNUP_SECRET=3679e04ca949f914c03332aaaeba805a
|
|
||||||
JWT_REFRESH_SECRET=5f2f3c8f0159068dc2bbb3a652a716ff
|
|
||||||
JWT_AUTH_SECRET=4be6ba5602e0fa0ac6ac05c3cd4d247f
|
|
||||||
JWT_SERVICE_SECRET=f32f716d70a42c5703f4656015e76200
|
|
||||||
|
|
||||||
# MongoDB
|
|
||||||
# Backend will connect to the MongoDB instance at connection string MONGO_URL which can either be a ref
|
|
||||||
# to the MongoDB container instance or Mongo Cloud
|
|
||||||
# Required
|
|
||||||
MONGO_URL=mongodb://root:example@mongo:27017/?authSource=admin
|
|
||||||
|
|
||||||
# Optional credentials for MongoDB container instance and Mongo-Express
|
|
||||||
MONGO_USERNAME=root
|
|
||||||
MONGO_PASSWORD=example
|
|
||||||
|
|
||||||
# Website URL
|
|
||||||
# Required
|
|
||||||
SITE_URL=http://localhost:8080
|
|
||||||
|
|
||||||
# Mail/SMTP
|
|
||||||
SMTP_HOST='smtp-server'
|
|
||||||
SMTP_PORT='1025'
|
|
||||||
SMTP_NAME='local'
|
|
||||||
SMTP_USERNAME='[email protected]'
|
|
||||||
SMTP_PASSWORD=
|
|
||||||
```
|
|
||||||
</Accordion>
|
|
||||||
|
|
||||||
<Warning>
|
|
||||||
The pre-populated environment variable values above are meant to be used in development only. They should never be used in production.
|
|
||||||
</Warning>
|
|
||||||
|
|
||||||
View all available [environment variables](https://infisical.com/docs/self-hosting/configuration/envars) and guidance for each.
|
|
||||||
|
|
||||||
## Starting Infisical for development
|
## Starting Infisical for development
|
||||||
|
|
||||||
@@ -72,10 +30,7 @@ docker-compose -f docker-compose.dev.yml up --build --force-recreate
|
|||||||
```
|
```
|
||||||
#### Access local server
|
#### Access local server
|
||||||
|
|
||||||
Once all the services have spun up, browse to http://localhost:8080. To sign in, you may use the default credentials listed below.
|
Once all the services have spun up, browse to http://localhost:8080.
|
||||||
|
|
||||||
Email: `[email protected]`
|
|
||||||
Password: `testInfisical1`
|
|
||||||
|
|
||||||
#### Shutdown local server
|
#### Shutdown local server
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ description: "How to migrate from MongoDB to PostgreSQL for Infisical"
|
|||||||
This guide will provide step by step instructions on migrating your Infisical instance running on MongoDB to the newly released PostgreSQL version of Infisical.
|
This guide will provide step by step instructions on migrating your Infisical instance running on MongoDB to the newly released PostgreSQL version of Infisical.
|
||||||
The newly released Postgres version of Infisical is the only version of Infisical that will receive feature updates and patches going forward.
|
The newly released Postgres version of Infisical is the only version of Infisical that will receive feature updates and patches going forward.
|
||||||
|
|
||||||
<Info>
|
<Tip>
|
||||||
If your deployment is using a Docker image tag that includes `postgres`, then you are already using the Postgres version of Infisical, and you can skip this guide.
|
If you have a small set of secrets, we recommend you to download the secrets and upload them to your new instance of Infisical instead of running the migration script.
|
||||||
</Info>
|
</Tip>
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
@@ -106,13 +106,20 @@ Once started, the migration script will transform MongoDB data into an equivalen
|
|||||||
git clone https://github.com/Infisical/infisical.git
|
git clone https://github.com/Infisical/infisical.git
|
||||||
```
|
```
|
||||||
</Step>
|
</Step>
|
||||||
<Step title="Change directory">
|
<Step title="Install dependencies for backend">
|
||||||
Once the repository has been cloned, change directory to the script folder.
|
```
|
||||||
|
cd backend
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
</Step>
|
||||||
|
<Step title="Install dependencies for script">
|
||||||
```
|
```
|
||||||
cd pg-migrator
|
cd pg-migrator
|
||||||
```
|
```
|
||||||
</Step>
|
|
||||||
<Step title="Install dependencies">
|
|
||||||
```
|
```
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user