Update deployment config and docs

This commit is contained in:
Tuan Dang
2022-11-23 14:16:53 -05:00
parent a35dedd7bb
commit e02fa7bfd6
6 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ MONGO_PASSWORD=example
# Website URL # Website URL
# Required # Required
ENV=development
SITE_URL=http://localhost:8080 SITE_URL=http://localhost:8080
# Mail/SMTP # Mail/SMTP
+2 -2
View File
@@ -31,7 +31,7 @@ services:
command: npm run dev command: npm run dev
env_file: .env env_file: .env
environment: environment:
- NODE_ENV=${ENV} - NODE_ENV=development
networks: networks:
- infisical-dev - infisical-dev
@@ -51,8 +51,8 @@ services:
- ./frontend/components:/app/components - ./frontend/components:/app/components
env_file: .env env_file: .env
environment: environment:
- NEXT_PUBLIC_ENV=production
- NEXT_PUBLIC_WEBSITE_URL=${SITE_URL} - NEXT_PUBLIC_WEBSITE_URL=${SITE_URL}
- NEXT_PUBLIC_ENV=${ENV}
networks: networks:
- infisical-dev - infisical-dev
+4 -2
View File
@@ -29,7 +29,7 @@ services:
command: npm run start command: npm run start
env_file: .env env_file: .env
environment: environment:
- NODE_ENV=${ENV} - NODE_ENV=production
networks: networks:
- infisical - infisical
@@ -45,8 +45,10 @@ services:
image: infisical/frontend image: infisical/frontend
env_file: .env env_file: .env
environment: environment:
- NEXT_PUBLIC_ENV=production
- NEXT_PUBLIC_WEBSITE_URL=${SITE_URL} - NEXT_PUBLIC_WEBSITE_URL=${SITE_URL}
- NEXT_PUBLIC_ENV=${ENV} - NEXT_PUBLIC_POSTHOG_HOST=${POSTHOG_HOST}
- NEXT_PUBLIC_POSTHOG_API_KEY=${POSTHOG_PROJECT_API_KEY}
networks: networks:
- infisical - infisical
+1 -1
View File
@@ -22,7 +22,7 @@ Configuring Infisical requires setting some environment variables. There is a fi
| `MONGO_URL` | ❗️ MongoDB instance connection string either to container instance or MongoDB Cloud | `None` | | `MONGO_URL` | ❗️ MongoDB instance connection string either to container instance or MongoDB Cloud | `None` |
| `MONGO_USERNAME` | MongoDB username if using container | `None` | | `MONGO_USERNAME` | MongoDB username if using container | `None` |
| `MONGO_PASSWORD` | MongoDB password if using container | `None` | | `MONGO_PASSWORD` | MongoDB password if using container | `None` |
| `NODE_ENV` | ❗️ `production` or `development` | `None` | | `ENV` | ❗️ `production` or `development` | `None` |
| `SITE_URL` | ❗️ Site URL - should be an absolute URL including the protocol (e.g. `https://app.infisical.com`) | `None` | | `SITE_URL` | ❗️ Site URL - should be an absolute URL including the protocol (e.g. `https://app.infisical.com`) | `None` |
| `SMT_HOST` | Whether the user joined the community | `smtp.gmail.com` | | `SMT_HOST` | Whether the user joined the community | `smtp.gmail.com` |
| `SMTP_NAME` | ❗️ Whether the user joined the community | `None` | | `SMTP_NAME` | ❗️ Whether the user joined the community | `None` |
+2 -2
View File
@@ -33,7 +33,7 @@ wget -O .env https://raw.githubusercontent.com/Infisical/infisical/main/.env.exa
wget -O docker-compose.yml https://raw.githubusercontent.com/Infisical/infisical/main/docker-compose.yml wget -O docker-compose.yml https://raw.githubusercontent.com/Infisical/infisical/main/docker-compose.yml
# Download nginx config # Download nginx config
mkdir nginx && cd nginx && wget -O default.conf https://raw.githubusercontent.com/Infisical/infisical/main/nginx/default.conf mkdir nginx && cd nginx && wget -O default.conf https://raw.githubusercontent.com/Infisical/infisical/main/nginx/default.dev.conf
cd .. cd ..
``` ```
@@ -51,4 +51,4 @@ nano .env
docker-compose -f docker-compose.yml up -d docker-compose -f docker-compose.yml up -d
``` ```
5. Your Infisical installation is complete and should be running on ports 40 and 443. Please note that the containers are not exposed to the internet and only bind to the localhost. It's up to you to configure a firewall, SSL certificates, and implement any additional security measures. 5. Your Infisical installation is complete and should be running on port 8080. Please note that the containers are not exposed to the internet and only bind to the localhost. It's up to you to configure a firewall, SSL certificates, and implement any additional security measures.
+2 -2
View File
@@ -2,7 +2,7 @@ server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
server_name api.infisical.com; server_name your.domain.com;
return 302 https://$server_name$request_uri; return 302 https://$server_name$request_uri;
} }
@@ -11,7 +11,7 @@ server {
listen 443 default_server ssl http2; listen 443 default_server ssl http2;
listen [::]:443 ssl http2; listen [::]:443 ssl http2;
server_name api.infiscal.com; server_name your.domain.com;
ssl_certificate /etc/ssl/cert.pem; ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/cert.key; ssl_certificate_key /etc/ssl/cert.key;