-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy path.env.sample
More file actions
51 lines (39 loc) · 1.34 KB
/
.env.sample
File metadata and controls
51 lines (39 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# ---------------------------------------------------------------
# Sample environment configuration for the OCServ Docker setup
# ---------------------------------------------------------------
# 1. Copy this file to create your own .env file:
# cp .env.sample .env
# 2. Edit the values to match your environment.
# 3. Use this .env file with Docker:
# docker run --env-file ./.env ...
# or in docker-compose:
# env_file:
# - ./.env
# ---------------------------------------------------------------
# Server host or IP where Ocserv will listen
HOST=127.0.0.1
# Secret key for internal API/auth usage
SECRET_KEY=SECRET_KEY
# JWT secret used by the API for authentication
JWT_SECRET=JWT_SECRET
# SSL certificate Common Name
SSL_CN=End-way-Cisco-VPN
# SSL certificate Organization Name
SSL_ORG=End-way
# Ocserv VPN subnet (CIDR format)
OC_NET=172.16.24.0/24
# SSL certificate validity in days
SSL_EXPIRE=3650
# Ocserv listening port
OCSERV_PORT=443
# Ocserv DNS server for clients
OCSERV_DNS=8.8.8.8
# Supported languages (format: code:Name, comma-separated)
LANGUAGES=en:English,zh:中文,ru:Русский,fa:فارسی,ar:العربية
# Supported Origin Requests
ALLOW_ORIGINS="https://${HOST}:3443,http://${HOST}:3000"
POSTGRES_HOST=ocserv
POSTGRES_PORT=5432
POSTGRES_DB=ocserv
POSTGRES_USER=ocserv
POSTGRES_PASSWORD=ocserv