ajout de claper

This commit is contained in:
Thomas Legay 2024-11-05 15:42:31 +01:00
parent c0eab91a7e
commit d528292a08
9 changed files with 155 additions and 0 deletions

View file

@ -0,0 +1,53 @@
BASE_URL=https://domainer.com
# SAME_SITE_COOKIE=Lax
# SECURE_COOKIE=false
DATABASE_URL=postgres://claper:xxxxxxxxxxx@postgresql:5432/claper
SECRET_KEY_BASE=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# ⚠️ Don't use this exact value for SECRET_KEY_BASE or someone would be able to sign a cookie with user_id=1 and log in as the admin!
# Storage configuration
PRESENTATION_STORAGE=local
PRESENTATION_STORAGE_DIR=priv/static
#MAX_FILE_SIZE_MB=15
#AWS_ACCESS_KEY_ID=xxx
#AWS_SECRET_ACCESS_KEY=xxx
#AWS_REGION=eu-west-3
#AWS_PRES_BUCKET=xxx
# Mail configuration
MAIL_TRANSPORT=local
MAIL_FROM=noreply@claper.co
MAIL_FROM_NAME=Claper
SMTP_RELAY=smtprelay
#SMTP_USERNAME=johndoe@example.com
#SMTP_PASSWORD=xxx
#SMTP_PORT=465
#SMTP_TLS=if_available
#ENABLE_MAILBOX_ROUTE=false
#MAILBOX_USER=admin
#MAILBOX_PASSWORD=admin
# Claper configuration
ENABLE_ACCOUNT_CREATION=false
#ALLOW_UNLINK_EXTERNAL_PROVIDER=false
#LOGOUT_REDIRECT_URL=https://google.com
#GS_JPG_RESOLUTION=300x300
# OIDC configuration
#OIDC_PROVIDER_NAME="keycloak"
#OIDC_ISSUER=
#OIDC_CLIENT_ID=
#OIDC_CLIENT_SECRET=
# OIDC_SCOPES="openid email profile"
# OIDC_LOGO_URL=""
# OIDC_PROPERTY_MAPPINGS="roles:custom_attributes.roles,organization:custom_attributes.organization"
#OIDC_AUTO_REDIRECT_LOGIN=true

View file

@ -0,0 +1,19 @@
[Unit]
Description=claper
[Service]
User=claper
Group=claper
EnvironmentFile=/etc/default/claper
ExecStart=/usr/bin/mix phx.server
WorkingDirectory=/opt/claper
PrivateTmp=true
PrivateDevices=true
ProtectHome=true
ProtectSystem=strict
Restart=on-failure
RestartSec=30s
ReadWritePaths=/opt/claper
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1 @@
/etc/default/claper

View file

@ -0,0 +1,8 @@
Package: claper
Version: %VERSION%
Section: contrib
Priority: optional
Architecture: all
Depends: inotify-tools, erlang-base, erlang-syntax-tools, erlang-xmerl
Maintainer: Thomas Legay <thomas@lgy.fr>
Description: claper

View file

@ -0,0 +1,5 @@
#!/bin/bash
id claper &> /dev/null || useradd claper -r -s /bin/false -d /opt/claper
chown -R claper:claper /opt/claper