-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathenv-sample
51 lines (41 loc) · 1.66 KB
/
env-sample
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
# It is vital to use a strong password for redis
# We use database index 0 (the default one). You may change this in production
# URL format:
# REDIS_URL="redis://<USERNAME>:<PASSWORD>@<HOSTNAME>:<PORT>/<DATABASE_INDEX>"
REDIS_URL="redis://default:password1234@localhost:6379/0"
# The address on which the ssh server listens
LISTEN_ADDR=":2222"
# Storage path for user config files
CONFIG_PATH="/var/ssh-users/"
# The URL using which the users can download their configuration
# You need to manually host the configuration files in on this URL
HOST_ADDR="http://localhost:8083/{uuid}.json"
# The server address users connect to
SERVER_ADDR="127.0.0.1"
SERVER_PORT=2222
# The key path of the server
# Must have trailing slash
HOST_KEY_PATH="/etc/ssh-liberty-bridge/"
# User configuration template file.
# The following variables will be substituted:
# $server_addr
# $server_port
# $client_uuid
# $private_key
# $host_keys
TEMPLATE_PATH="./generator/template.json"
# The number of maximum simultaneous connections for each client
MAX_CONNECTIONS=2
# URL to copy server version from. Set to "disabled" to disable this feature
# Example: localhost:22, gitea:22
COPY_SERVER_VERSION="localhost:22"
# In case the URL is disabled or is non responding, use this string instead.
# Note that it should always start with "SSH-2.0"
DEFAULT_SERVER_VERSION="SSH-2.0-Go"
# Keep empty to disable, otherwise write your address like:
# socks5://localhost:1080
SOCKS_PROXY=""
# Passthrough port. Connections to localhost are only allowed if the destination
# port is the same as one of the comma seperated ports bellow
# Example: WHITELIST_PORTS="80,443,2000". This should not include spaces
WHITELIST_PORTS=""