Upload full Albumik YunoHost package

This commit is contained in:
adminsopel
2026-05-01 09:06:44 +02:00
parent 2145989988
commit f8beabe293
16 changed files with 1690 additions and 0 deletions

20
conf/albumik.service Normal file
View File

@@ -0,0 +1,20 @@
[Unit]
Description=Albumik private photo album
After=network.target
[Service]
Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__
Environment=ALBUMIK_CONFIG=/etc/__APP__/config.json
ExecStart=/usr/bin/python3 __INSTALL_DIR__/backend/app.py
Restart=on-failure
RestartSec=3
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ReadWritePaths=__DATA_DIR__
[Install]
WantedBy=multi-user.target

13
conf/config.json Normal file
View File

@@ -0,0 +1,13 @@
{
"app_name": "Albumik",
"listen": "127.0.0.1:__PORT__",
"base_path": "__PATH__",
"data_dir": "__DATA_DIR__",
"database": "__DATA_DIR__/data/albumik.db",
"media_dir": "__DATA_DIR__/media",
"web_dir": "__INSTALL_DIR__/web",
"admin_user": "__ADMIN_USER__",
"admin_password": "__ADMIN_PASSWORD__",
"session_days": 14,
"max_upload_mb": 2048
}

11
conf/nginx.conf Normal file
View File

@@ -0,0 +1,11 @@
# Albumik - YunoHost nginx reverse proxy
location __PATH__/ {
proxy_pass http://127.0.0.1:__PORT__/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300;
proxy_send_timeout 300;
client_max_body_size 2048M;
}