Upload full Albumik YunoHost package
This commit is contained in:
20
conf/albumik.service
Normal file
20
conf/albumik.service
Normal 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
13
conf/config.json
Normal 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
11
conf/nginx.conf
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user