mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
commit
d5f5b41e20
1 changed files with 14 additions and 1 deletions
|
|
@ -7,9 +7,22 @@ A pre-built docker image is supplied in the repos [GitHub Packages](https://gith
|
|||
It can be run with docker like so:
|
||||
|
||||
```
|
||||
docker run -itp 443:443 -v ccashconfig:/ccash/config -e ADMIN_A=<admin-username> -e SAVE_FREQ=<in minutes> expandsys/ccash
|
||||
docker run -itp 443:443 -v ccashconfig:/ccash/config -e ADMIN_A=<admin-username> -e SAVE_FREQ=<in minutes> ghcr.io/entiretwix/ccash/ccash:latest
|
||||
```
|
||||
|
||||
## Ansible
|
||||
Additionally CCash can be deployed to any infrastructure able to run Rocky/Alma Linux 8/9 x86_64 virtual or not, we will be eventually updating it to allow it to run on other OS's but for now RHEL is what works.
|
||||
|
||||
As CCash is intended to be run as root, the playbook is run also as root. The playbook also builds CCash from the latest github push, so there may be bugs.
|
||||
|
||||
In order to use the ansible playbook, clone the playbook to any pc with the ability to access the server through SSH and with Ansible installed, edit the inventory file to contain the IP address of the target server and run the following command:
|
||||
```ansible-playbook -i inventory main.yml -k```
|
||||
When this is complete the server will have ccash installed to the user dir, this is customizable in the vars/default.yml file along with the admin username and save frequency.
|
||||
To start CCash run:
|
||||
```systemctl start ccash```
|
||||
To run ccash at start up run:
|
||||
```systemctl enable ccash```
|
||||
|
||||
## Build
|
||||
Previously this used GitHub Workflows, I(Expand) dont know how to do those but its not that hard to deploy stuff manually. To run the pre configured docker image run the above command and you are off to the races it will deploy a self signed certificate and use that for deployment. As this is not a user facing deployment the certificate is self signed and thus will throw an error on chrome, though this will still work if you ignore it. For production you should deploy with a reverse proxy and a correct certificate for your domain.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue