Initial
This commit is contained in:
commit
363a876c22
88 changed files with 783 additions and 0 deletions
0
ressources/joplin-server/rootfs/DEBIAN/changelog
Normal file
0
ressources/joplin-server/rootfs/DEBIAN/changelog
Normal file
1
ressources/joplin-server/rootfs/DEBIAN/conffiles
Normal file
1
ressources/joplin-server/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/default/joplin-server
|
8
ressources/joplin-server/rootfs/DEBIAN/control
Normal file
8
ressources/joplin-server/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,8 @@
|
|||
Package: joplin-server
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: nodejs
|
||||
Maintainer: Thomas Legay <thomas@syngate.fr>
|
||||
Description: joplin server
|
8
ressources/joplin-server/rootfs/DEBIAN/postinst
Executable file
8
ressources/joplin-server/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
id joplin-server &> /dev/null || useradd joplin-server -r -s /bin/false -md /var/lib/joplin-server
|
||||
## issue https://github.com/laurent22/joplin/issues/5980
|
||||
mkdir /usr/lib/joplin-server/server/temp/
|
||||
mkdir /usr/lib/joplin-server/server/logs/
|
||||
chown joplin-server:joplin-server /usr/lib/joplin-server/server/temp/
|
||||
chown joplin-server:joplin-server /usr/lib/joplin-server/server/logs/
|
60
ressources/joplin-server/rootfs/etc/default/joplin-server
Normal file
60
ressources/joplin-server/rootfs/etc/default/joplin-server
Normal file
|
@ -0,0 +1,60 @@
|
|||
APP_NAME='Joplin Server'
|
||||
APP_PORT=22300
|
||||
SIGNUP_ENABLED=0
|
||||
TERMS_ENABLED=0
|
||||
ACCOUNT_TYPES_ENABLED=0
|
||||
ERROR_STACK_TRACES=0
|
||||
COOKIES_SECURE=0
|
||||
RUNNING_IN_DOCKER=0
|
||||
# Maxiumm allowed drift between NTP time and server time. A few
|
||||
# milliseconds is normally not an issue unless many clients are modifying
|
||||
# the same note at the exact same time. But past a certain limit it might
|
||||
# mean the server clock is incorrect and should be fixed as that could
|
||||
# result in clients generating many conflicts. Set to 0 to disable the
|
||||
# check. https:#github.com/laurent22/joplin/issues/5738
|
||||
MAX_TIME_DRIFT=2000
|
||||
#==================================================
|
||||
# URL config
|
||||
#==================================================
|
||||
#APP_BASE_URL=
|
||||
USER_CONTENT_BASE_URL=
|
||||
API_BASE_URL=
|
||||
JOPLINAPP_BASE_URL='https:#joplinapp.org'
|
||||
#==================================================
|
||||
# Database config
|
||||
#==================================================
|
||||
DB_CLIENT='sqlite3'
|
||||
DB_SLOW_QUERY_LOG_ENABLED=0
|
||||
DB_SLOW_QUERY_LOG_MIN_DURATION=1000
|
||||
DB_AUTO_MIGRATION=1
|
||||
POSTGRES_PASSWORD='joplin'
|
||||
POSTGRES_DATABASE='joplin'
|
||||
POSTGRES_USER='joplin'
|
||||
POSTGRES_HOST=
|
||||
POSTGRES_PORT=5432
|
||||
# This must be the full path to the database file
|
||||
SQLITE_DATABASE=
|
||||
#==================================================
|
||||
# Content driver config
|
||||
#==================================================
|
||||
STORAGE_DRIVER='Type=Database'
|
||||
STORAGE_DRIVER_FALLBACK=
|
||||
#==================================================
|
||||
# Mailer config
|
||||
#==================================================
|
||||
MAILER_ENABLED=0
|
||||
MAILER_HOST=
|
||||
MAILER_PORT=587
|
||||
MAILER_SECURE=1
|
||||
MAILER_AUTH_USER=
|
||||
MAILER_AUTH_PASSWORD=
|
||||
MAILER_NOREPLY_NAME=
|
||||
MAILER_NOREPLY_EMAIL=
|
||||
SUPPORT_EMAIL='SUPPORT_EMAIL'
|
||||
SUPPORT_NAME=
|
||||
BUSINESS_EMAIL=
|
||||
#==================================================
|
||||
# Stripe config
|
||||
#==================================================
|
||||
STRIPE_SECRET_KEY=
|
||||
STRIPE_WEBHOOK_SECRET=
|
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=joplin server
|
||||
Documentation=https://github.com/laurent22/joplin
|
||||
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=joplin-server
|
||||
Group=joplin-server
|
||||
EnvironmentFile=/etc/default/joplin-server
|
||||
ExecStart=/usr/bin/yarn --cwd /usr/lib/joplin-server/server/ start
|
||||
WorkingDirectory=/var/lib/joplin-server/
|
||||
Restart=on-failure
|
||||
RestartSec=30s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue