mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
allow ccash ports to be set by vars
This commit is contained in:
parent
b74510a113
commit
ad3bb2c13b
2 changed files with 9 additions and 5 deletions
|
|
@ -70,6 +70,7 @@
|
|||
chdir: '{{BUILD_DIR}}/CCash/build/'
|
||||
cmd: ./bank
|
||||
creates: '{{ BUILD_DIR }}/CCash/config/users.dat'
|
||||
|
||||
- name: chmod +x ssl.sh
|
||||
ansible.builtin.file:
|
||||
mode: u+x
|
||||
|
|
@ -81,12 +82,12 @@
|
|||
"listeners": [
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"port": 80,
|
||||
"port": {{ CCASH_PORT }},
|
||||
"https": false
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"port": 443,
|
||||
"port": {{ CCASH_PORT_S }},
|
||||
"https": true,
|
||||
"cert": "{{ BUILD_DIR }}/CCash/config/cert.cert",
|
||||
"key": "{{ BUILD_DIR }}/CCash/config/key.key"
|
||||
|
|
@ -119,6 +120,7 @@
|
|||
ansible.builtin.command:
|
||||
chdir: '{{ BUILD_DIR }}/CCash/build'
|
||||
cmd: './bank {{ ADMIN_A }} {{ SAVE_FREQ }} true'
|
||||
when: START_SERVICES == true
|
||||
|
||||
- name: Clone Web
|
||||
git:
|
||||
|
|
@ -186,6 +188,7 @@
|
|||
cmd: |
|
||||
pm2 startup
|
||||
when: START_ON_BOOT == true and START_SERVICES == true and WEB_ENABLED == true
|
||||
|
||||
- name: enable ccash on boot
|
||||
ansible.builtin.cron:
|
||||
name: CCash enable on boot
|
||||
|
|
@ -206,4 +209,3 @@
|
|||
port: 3000/tcp
|
||||
state: enabled
|
||||
when: WEB_ENABLED == true
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ SAVE_FREQ: "2"
|
|||
USE_DEPRECATED_ENDPOINTS: "true"
|
||||
WEB_ENABLED: true
|
||||
WEB_PORT: "3000"
|
||||
START_SERVICES: true
|
||||
CCASH_PORT: 8080
|
||||
CCASH_PORT_S: 8443
|
||||
START_SERVICES: false
|
||||
START_ON_BOOT: true
|
||||
BRANCH: "main"
|
||||
Loading…
Reference in a new issue