CyberKeyGen¶
CyberKeyGen is used as a simple password generator.
Installation¶
Default Port: 8080
Configuration path: /opt/cyberkeygen
For this installation of CyberKeyGen, the LXC is used to both build and serve the static site. The reason for this to make it easier to build and deploy the site after an update.
npm
and vite
are used to build the site and an nginx Docker container is used to serve the site.
Config¶
They CyberKeyGen source repo is stored in the /opt/cyberkeygen
directory and the distribution files are stored in the /opt/cyberkeygen/dist
directory after build.
homelab/docker/cyberkeygen/.env
homelab/docker/cyberkeygen/compose.yaml
Traefik¶
homelab/pve/traefik/conf.d/cyberkeygen.yaml
---
http:
#region routers
routers:
cyberkeygen:
entryPoints:
- "websecure"
rule: "Host(`cyberkeygen.l.nicholaswilde.io`)"
middlewares:
- default-headers@file
- https-redirectscheme@file
tls: {}
service: cyberkeygen
#endregion
#region services
services:
cyberkeygen:
loadBalancer:
servers:
- url: "http://192.168.2.104:8080"
passHostHeader: true
#endregion
Upgrade¶
To upgrade the CyberKeyGen app, the source repo is pulled and then rebuilt.
The nginx
Docker image is managed by Renovate and so and so after a Renovate PR is merged into this repo, this repo is pulled and the Docker container is pulled and restarted.
Warning
The below commands purge any unused Docker images! Use at your own risk!
homelab/docker/cyberkeygen
Task List¶
task: Available tasks for this project:
* build: Build
* decrypt: Decrypt sensitive configuration files using SOPS.
* default: List all available tasks.
* deps: Install dependencies
* encrypt: Encrypt sensitive configuration files using SOPS.
* export: Export the task list to `task-list.txt`.
* init: Init everything
* init-env: Initialize the application's environment file.
* pull: Pull Docker images for the application.
* restart: Restart the application's Docker containers.
* status: Check the status of the application's Docker containers.
* stop: Stop the application's Docker containers.
* up: Run Docker Compose in the foreground.
* up-d: Run Docker Compose in the background.
* update: Update the application or its running containers.
* upgrade: Upgrade the application by pulling the latest changes and updating.
* watch: Watch the application's Docker container logs.