New version authelia bitwarden-desktop element-web joplin-desktop vaultwarden vaultwarden-web
This commit is contained in:
parent
9359602185
commit
5ecefd0f87
22 changed files with 120 additions and 148 deletions
36
ressources/joplin-server/debmaker
Executable file
36
ressources/joplin-server/debmaker
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION=2.7.4
|
||||
|
||||
[ -e ./lib/function.sh ] && source ./lib/function.sh
|
||||
|
||||
APP=joplin-server
|
||||
GIT_VERSION=server-v${VERSION}
|
||||
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
|
||||
DEPOT=https://github.com/laurent22/joplin.git
|
||||
DEBIAN_VERSION_CODENAME=bullseye
|
||||
IMAGE_SIZE=14
|
||||
|
||||
STEP="minimum_package envinit default_prebuild build makedeb"
|
||||
|
||||
envinit() {
|
||||
configure_depot_yarn
|
||||
configure_depot_nodejs
|
||||
apt-get update
|
||||
apt-get dist-upgrade -y
|
||||
apt install -y --no-install-recommends build-essential python nodejs rsync yarn
|
||||
}
|
||||
|
||||
build() {
|
||||
rm -fr /tmp/${APP}/packages/app-mobile
|
||||
cd /tmp/${APP}/
|
||||
BUILD_SEQUENCIAL=1 yarn install
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
PATH_DEB=/tmp/src/rootfs/
|
||||
|
||||
cp -fr /tmp/joplin-server/packages/{lib,turndown-plugin-gfm,turndown,htmlpack,fork-uslug,fork-sax,renderer,fork-htmlparser2,tools,server} ${PATH_DEB}/usr/share/joplin-server/
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||||
}
|
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
|
||||
[ ! -e /usr/lib/joplin-server/server/temp/ ] && mkdir /usr/lib/joplin-server/server/temp/
|
||||
[ ! -e /usr/lib/joplin-server/server/logs/ ] && 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
|
|
@ -0,0 +1 @@
|
|||
|
Loading…
Add table
Add a link
Reference in a new issue