ansible/in-node/vars.yaml

307 lines
12 KiB
YAML
Raw Normal View History

2024-01-06 22:27:58 +05:30
---
2024-01-07 22:06:11 +05:30
default_restart_policy: unless-stopped
configs_dir: "/opt/configs"
compose_dir: "/opt/docker"
data_dir: "/opt/docker"
2024-01-06 22:27:58 +05:30
apps:
groups:
semaphore:
2024-01-07 22:06:11 +05:30
needs_configs_dir: false
needs_data_dir: false
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: semaphore
image: semaphoreui/semaphore:latest
ports:
- "3527:3000"
environment:
SEMAPHORE_DB_USER: semaphore
2024-01-07 22:06:11 +05:30
# SEMAPHORE_DB_PASS: "{{semaphore_db_pass}}"
# SEMAPHORE_DB_HOST: "{{common_postgres_ip}}"
2024-01-06 22:27:58 +05:30
SEMAPHORE_DB_PORT: 5432
SEMAPHORE_DB_DIALECT: postgres
SEMAPHORE_DB: semaphore
SEMAPHORE_PLAYBOOK_PATH: /tmp/semaphore/
2024-01-07 22:06:11 +05:30
# SEMAPHORE_ADMIN_PASSWORD: "{{semaphore_admin_password}}"
2024-01-06 22:27:58 +05:30
SEMAPHORE_ADMIN_NAME: admin
SEMAPHORE_ADMIN_EMAIL: admin@projectsegfau.lt
SEMAPHORE_ADMIN: admin
2024-01-07 22:06:11 +05:30
# SEMAPHORE_ACCESS_KEY_ENCRYPTION: "{{semaphore_access_key_encryption}}"
SEMAPHORE_LDAP_ACTIVATED: 'no' # if you wish to use ldap, set to: 'yes'
2024-01-06 22:27:58 +05:30
ANSIBLE_HOST_KEY_CHECKING: 'false'
ghost:
2024-01-07 22:06:11 +05:30
needs_configs_dir: true
needs_data_dir: true
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: ghost
image: ghost:latest
ports:
- "2368:2368"
environment:
NODE_ENV: production
mounts:
- "{{configs_dir}}/ghost/config.production.json:/var/lib/ghost/config.production.json:z"
- "{{data_dir}}/ghost/content:/var/lib/ghost/content:z"
gitea:
2024-01-07 22:06:11 +05:30
needs_configs_dir: true
needs_data_dir: true
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: gitea
image: gitea/gitea:latest
environment:
USER_UID=1000
USER_GID=1000
mounts:
- "{{data_dir}}/gitea:/data"
- "{{configs_dir}}/gitea/templates:/data/gitea/templates"
- "{{configs_dir}}/gitea/conf/app.ini:/data/gitea/conf/app.ini"
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
ports:
- "3444:3000"
- "222:22"
headscale:
2024-01-07 22:06:11 +05:30
needs_configs_dir: true
needs_data_dir: true
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: headscale
image: headscale/headscale:latest
ports:
- "8089:8080"
mounts:
- "{{data_dir}}/headscale:/etc/headscale"
- "{{configs_dir}}/headscale/config.yaml:/etc/headscale/config.yaml"
healthchecks:
2024-01-07 22:06:11 +05:30
needs_configs_dir: false
needs_data_dir: false
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: healthchecks
image: healthchecks/healthchecks:latest
ports:
- "8450:8000"
environment:
ALLOWED_HOSTS: "*"
2024-01-07 22:06:11 +05:30
APPRISE_ENABLED: true
2024-01-06 22:27:58 +05:30
DB: postgres
DB_CONN_MAX_AGE: 0
2024-01-07 22:06:11 +05:30
# DB_HOST: {{common_postgres_ip}}
2024-01-06 22:27:58 +05:30
DB_NAME: healthchecks
2024-01-07 22:06:11 +05:30
# DB_PASSWORD: {{healthchecks_db_pass}}
2024-01-06 22:27:58 +05:30
DB_PORT: 5432
DB_SSLMODE: prefer
DB_TARGET_SESSION_ATTRS: read-write
DB_USER: healthchecks
2024-01-07 22:06:11 +05:30
DEBUG: false
2024-01-06 22:27:58 +05:30
DEFAULT_FROM_EMAIL: healthchecks@projectsegfau.lt
EMAIL_HOST: mail.projectsegfau.lt
2024-01-07 22:06:11 +05:30
# EMAIL_HOST_PASSWORD: {{healthchecks_email_pass}}
2024-01-06 22:27:58 +05:30
EMAIL_HOST_USER: healthchecks@projectsegfau.lt
EMAIL_PORT: 587
2024-01-07 22:06:11 +05:30
EMAIL_USE_TLS: true
EMAIL_USE_VERIFICATION: true
INTEGRATIONS_ALLOW_PRIVATE_IPS: false
# MATRIX_ACCESS_TOKEN: {{healthchecks_matrix_access_token}}
2024-01-06 22:27:58 +05:30
MATRIX_HOMESERVER: https://matrix.envs.net
MATRIX_USER_ID: "@psf-bot:envs.net"
2024-01-06 22:27:58 +05:30
PING_BODY_LIMIT: 10000
PING_EMAIL_DOMAIN: healthchecks.projectsegfau.lt
PING_ENDPOINT: https://healthchecks.projectsegfau.lt/ping/
2024-01-07 22:06:11 +05:30
PROMETHEUS_ENABLED: true
REGISTRATION_OPEN: true
2024-01-06 22:27:58 +05:30
REMOTE_USER_HEADER: X-Forwarded-For
RP_ID: healthchecks.projectsegfau.lt
2024-01-07 22:06:11 +05:30
# SECRET_KEY: {{healthchecks_secret_key}}
SHELL_ENABLED: false
2024-01-06 22:27:58 +05:30
SITE_LOGO_URL: https://psf.lt/logo.png
SITE_NAME: Mychecks
SITE_ROOT: https://healthchecks.projectsegfau.lt
hedgedoc:
2024-01-07 22:06:11 +05:30
needs_data_dir: true
needs_configs_dir: false
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: hedgedoc
image: quay.io/hedgedoc/hedgedoc:latest
mounts:
- "{{data_dir}}/hedgedoc/files:/files"
- "{{data_dir}}/hedgedoc/uploads:/hedgedoc/public/uploads"
ports:
- "2069:3000"
environment:
2024-01-08 11:58:59 +05:30
# CMD_DB_URL: postgres://hedgedoc:{{hedgedoc_db_pass}}@{{common_postgres_ip}}/hedgedoc
2024-01-06 22:27:58 +05:30
CMD_DOMAIN: doc.projectsegfau.lt
CMD_PROTOCOL_USESSL: true
TZ: UTC
CMD_URL_ADDPORT: false
CMD_COOKIE_POLICY: lax
CMD_ALLOW_GRAVATAR: true
CMD_ALLOW_ANONYMOUS: true
CMD_ALLOW_ANONYMOUS_EDITS: true
CMD_ALLOW_FREEURL: true
CMD_REQUIRE_FREEURL_AUTHENTICATION: false
CMD_ALLOW_EMAIL_REGISTER: true
CMD_PORT: 3000
2024-01-08 11:58:59 +05:30
# CMD_SESSION_SECRET: "{{hedgedoc_session_secret}}"
2024-01-06 22:27:58 +05:30
CMD_CSP_ENABLE: true
CMD_OAUTH2_PROVIDERNAME: "authentik"
2024-01-08 11:58:59 +05:30
# CMD_OAUTH2_CLIENT_ID: "{{hedgedoc_authentik_client_id}}"
# CMD_OAUTH2_CLIENT_SECRET: "{{hedgedoc_authentik_client_secret}}"
2024-01-06 22:27:58 +05:30
CMD_OAUTH2_SCOPE: "openid email profile"
CMD_OAUTH2_USER_PROFILE_URL: "https://auth.p.projectsegfau.lt/application/o/userinfo/"
CMD_OAUTH2_TOKEN_URL: "https://auth.p.projectsegfau.lt/application/o/token/"
CMD_OAUTH2_AUTHORIZATION_URL: "https://auth.p.projectsegfau.lt/application/o/authorize/"
CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR: "preferred_username"
CMD_OAUTH2_USER_PROFILE_DISPLAY_NAME_ATTR: "name"
CMD_OAUTH2_USER_PROFILE_EMAIL_ATTR: "email"
CMD_ALLOW_ORIGIN: "['localhost', 'doc.projectsegfau.lt', 'auth.p.projectsegfau.lt']"
website:
2024-01-07 22:06:11 +05:30
needs_data_dir: false
needs_configs_dir: false
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: website
image: ghcr.io/projectsegfault/website:latest
ports:
- "1337:3000"
environment:
2024-01-08 11:58:59 +05:30
# GHOST_API_KEY: "{{website_ghost_api_key}}"
2024-01-06 22:27:58 +05:30
GHOST_URL: https://blog.projectsegfau.lt
KUMA_URL: https://st.psf.lt/api/status-page/projectsegfault
ADDRESS_HEADER: X-Forwarded-For
- name: website-dev
image: ghcr.io/projectsegfault/website:dev
ports:
- "1339:3000"
environment:
2024-01-08 11:58:59 +05:30
# GHOST_API_KEY: "{{website_ghost_api_key}}"
2024-01-06 22:27:58 +05:30
GHOST_URL: https://blog.projectsegfau.lt
KUMA_URL: https://st.psf.lt/api/status-page/projectsegfault
ADDRESS_HEADER: X-Forwarded-For
grafana:
2024-01-07 22:06:11 +05:30
needs_configs_dir: true
needs_data_dir: true
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: grafana
image: grafana/grafana-oss:latest
user: 1000
ports:
- "3170:3000"
mounts:
- "{{data_dir}}/grafana/grafdata:/var/lib/grafana"
2024-01-06 22:27:58 +05:30
environment:
GF_SERVER_ROOT_URL: "https://grafana.vpn.projectsegfau.lt"
- name: prometheus
image: prom/prometheus:latest
mounts:
2024-01-07 22:06:11 +05:30
- "{{configs_dir}}/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml"
2024-01-06 22:27:58 +05:30
- "{{data_dir}}/prometheus:/prometheus"
command: "--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --web.console.libraries=/etc/prometheus/console_libraries --web.console.templates=/etc/prometheus/consoles --web.enable-lifecycle"
ports:
- "9090:9090"
chatclients:
2024-01-07 22:06:11 +05:30
needs_configs_dir: true
needs_data_dir: false
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: cinny
image: ajbura/cinny:latest
ports:
- "3069:80"
mounts:
2024-01-07 22:06:11 +05:30
- "{{configs_dir}}/chatclients/cinny/config.json:/usr/share/nginx/html/config.json"
2024-01-06 22:27:58 +05:30
- name: element
image: vectorim/element-web:latest
ports:
- "3070:80"
mounts:
2024-01-07 22:06:11 +05:30
- "{{configs_dir}}/chatclients/element/config.json:/app/config.json"
2024-01-06 22:27:58 +05:30
- name: hydrogen
image: regsitry.gitlab.com/jcgruenhage/hydrogen-web:latest
ports:
- "3071:80"
- name: xmpp-web
image: nioc/xmpp-web:latest
ports:
- "3072:80"
environment:
XMPP_WS: https://projectsegfau.lt/ws
APP_WS: wss://projectsegfau.lt/ws
APP_DEFAULT_DOMAIN: projectsegfau.lt
APP_HAS_SENDING_ENTER_KEY: true
vaultwarden:
2024-01-07 22:06:11 +05:30
needs_data_dir: true
needs_configs_dir: false
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: vaultwarden
image: vaultwarden/server:latest
mounts:
- "{{data_dir}}/vaultwarden:/data"
ports:
- "6980:80"
environment:
DATA_FOLDER: data
2024-01-07 22:06:11 +05:30
# DATABASE_URL: postgresql://vaultwarden:{{vaultwarden_db_pass}}@{{common_postgres_ip}}/vaultwarden
2024-01-06 22:27:58 +05:30
DATABASE_MAX_CONNS: 100
IP_HEADER: X-Forwarded-For
WEB_VAULT_FOLDER: web-vault/
WEB_VAULT_ENABLED: true
WEBSOCKET_ENABLED: true
SENDS_ALLOWED: true
EMERGENCY_ACCESS_ALLOWED: true
ORG_EVENTS_ENABLED: true
JOB_POLL_INTERVAL_MS: 30000
SEND_PURGE_SCHEDULE: "0 5 * * * *"
TRASH_PURGE_SCHEDULE: "0 5 0 * * *"
INCOMPLETE_2FA_SCHEDULE: "30 * * * * *"
EMERGENCY_NOTIFICATION_REMINDER_SCHEDULE: "0 3 * * * *"
EMERGENCY_REQUEST_TIMEOUT_SCHEDULE: "0 7 * * * *"
EVENT_CLEANUP_SCHEDULE: "0 10 0 * * *"
EXTENDED_LOGGING: true
LOG_TIMESTAMP_FORMAT: "%Y-%m-%d %H:%M:%S.%3f"
LOG_FILE: /data/vaultwarden.log
ICON_SERVICE: internal
EMAIL_TOKEN_SIZE: 6
SIGNUPS_ALLOWED: true
SIGNUPS_VERIFY: true
SIGNUPS_VERIFY_RESEND_TIME: 3600
SIGNUPS_VERIFY_RESEND_LIMIT: 12
2024-01-07 22:06:11 +05:30
# ADMIN_TOKEN: {{vaultwarden_admin_token}}
2024-01-06 22:27:58 +05:30
INVITATIONS_ALLOWED: true
INVITATION_ORG_NAME: Vaultwarden
INVITATION_EXPIRATION_HOURS: 120
ORG_ATTACHMENT_LIMIT: 200000
USER_ATTACHMENT_LIMIT: 100000
TRASH_AUTO_DELETE_DAYS: 90
DOMAIN: https://pass.projectsegfau.lt
ROCKET_WORKERS: 64
SMTP_HOST: mail.projectsegfau.lt
SMTP_FROM: vaultwarden@projectsegfau.lt
SMTP_FROM_NAME: Vaultwarden
SMTP_SECURITY: starttls
2024-01-07 22:06:11 +05:30
SMTP_PORT: 587
2024-01-06 22:27:58 +05:30
SMTP_USERNAME: vaultwarden@projectsegfau.lt
2024-01-07 22:06:11 +05:30
# SMTP_PASSWORD: {{vaultwarden_smtp_pass}}
2024-01-06 22:27:58 +05:30
SMTP_AUTH_MECHANISM: "Plain"
SMTP_EMBED_IMAGES: true
REQUIRE_DEVICE_EMAIL: false
YUBICO_CLIENT_ID: 89607
2024-01-07 22:06:11 +05:30
# YUBICO_SECRET_KEY: {{vaultwarden_yubico_secret_key}}
2024-01-06 22:27:58 +05:30
mauliasproxy:
2024-01-07 22:06:11 +05:30
needs_configs_dir: true
needs_data_dir: false
2024-01-06 22:27:58 +05:30
docker_settings:
services:
- name: mauliasproxy
image: dock.mau.dev/tulir/mauliasproxy:latest
ports:
- "8456:8008"
mounts:
2024-01-07 22:06:11 +05:30
- "{{configs_dir}}/mauliasproxy/config.yaml:/data/config.yaml"