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

View File

@@ -33,7 +33,7 @@ MONGO_PASSWORD=example
# Website URL
# Required
ENV=development
SITE_URL=http://localhost:8080
# Mail/SMTP

View File

@@ -31,7 +31,7 @@ services:
command: npm run dev
env_file: .env
environment:
- NODE_ENV=${ENV}
- NODE_ENV=development
networks:
- infisical-dev
@@ -51,8 +51,8 @@ services:
- ./frontend/components:/app/components
env_file: .env
environment:
- NEXT_PUBLIC_ENV=production
- NEXT_PUBLIC_WEBSITE_URL=${SITE_URL}
- NEXT_PUBLIC_ENV=${ENV}
networks:
- infisical-dev

View File

@@ -29,7 +29,7 @@ services:
command: npm run start
env_file: .env
environment:
- NODE_ENV=${ENV}
- NODE_ENV=production
networks:
- infisical
@@ -45,8 +45,10 @@ services:
image: infisical/frontend
env_file: .env
environment:
- NEXT_PUBLIC_ENV=production
- 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:
- infisical

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_USERNAME` | MongoDB username 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` |
| `SMT_HOST` | Whether the user joined the community | `smtp.gmail.com` |
| `SMTP_NAME` | ❗️ Whether the user joined the community | `None` |

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
# 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 ..
```
@@ -51,4 +51,4 @@ nano .env
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.

View File

@@ -2,7 +2,7 @@ server {
listen 80;
listen [::]:80;
server_name api.infisical.com;
server_name your.domain.com;
return 302 https://$server_name$request_uri;
}
@@ -11,7 +11,7 @@ server {
listen 443 default_server ssl http2;
listen [::]:443 ssl http2;
server_name api.infiscal.com;
server_name your.domain.com;
ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/cert.key;