forked from jdeathe/centos-ssh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.conf
34 lines (28 loc) · 1.36 KB
/
run.conf
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
#!/bin/sh
# Description:
# Run configuration options
##############################################################################
. common.conf
SERVICE_UNIT_NAME=ssh
SERVICE_UNIT_APP_GROUP=app-1
SERVICE_UNIT_SHARED_GROUP=pool-1
SERVICE_UNIT_LOCAL_ID=1
SERVICE_UNIT_INSTANCE=1
SERVICE_UNIT_PORT=2020
SERVICE_UNIT_LONG_NAME=${SERVICE_UNIT_NAME}.${SERVICE_UNIT_SHARED_GROUP}.${SERVICE_UNIT_LOCAL_ID}.${SERVICE_UNIT_INSTANCE}
SERVICE_UNIT_FILE_NAME=${SERVICE_UNIT_LONG_NAME}@${SERVICE_UNIT_PORT}.service
DOCKER_NAME=${SERVICE_UNIT_LONG_NAME}
DOCKER_HOST_PORT_SSH=${SERVICE_UNIT_PORT:-2020}
DOCKER_HOST_PORT_SFTP=$((( ${DOCKER_HOST_PORT_SSH} + 1 )))
# VOLUME_CONFIG_NAME=volume-config.${SERVICE_UNIT_NAME}
# VOLUME_CONFIG_NAME=volume-config.${SERVICE_UNIT_NAME}.${SERVICE_UNIT_SHARED_GROUP}
VOLUME_CONFIG_NAME=volume-config.${DOCKER_NAME}
# Use of a configuration volume requires additional maintenance and access to the
# filesystem of the docker host so is disabled by default.
VOLUME_CONFIG_ENABLED=false
# Using named volumes allows for easier identification of files located in
# /var/lib/docker/volumes/ on the docker host. If set to true, the value of
# VOLUME_CONFIG_NAME is used in place of an automatically generated ID.
# NOTE: When using named volumes you need to copy the contents of the directory
# into the configuration "data" volume container.
VOLUME_CONFIG_NAMED=false