parent
297a9d686c
commit
30fc01c577
21
README.MD
21
README.MD
|
@ -16,6 +16,7 @@ debmake_runAllStep
|
|||
|
||||
- [element-web](#element-web)
|
||||
- [gotify](#gotify)
|
||||
- [grocy](#grocy)
|
||||
- [joplin-server](#joplin-server)
|
||||
- [rss-bridge](#rss-bridge)
|
||||
- [vaultwarden and vaultwarden-web](#vaultwarden-and-vaultwarden-web)
|
||||
|
@ -52,6 +53,26 @@ apt-get install -y gotify-server
|
|||
systemctl enable --now gotify
|
||||
```
|
||||
|
||||
#### grocy
|
||||
|
||||
```bash
|
||||
apt install -y python wget ca-certificates
|
||||
wget -qO - https://deb.lgy.fr/install.sh | bash
|
||||
apt-get update
|
||||
apt-get install -y grocy
|
||||
|
||||
#Edit /etc/grocy/config.php
|
||||
|
||||
# sample configuration for apache2 + php fpm
|
||||
apt install apache2 php-fpm
|
||||
a2enmod proxy_fcgi setenvif rewrite
|
||||
a2enconf php8.1-fpm
|
||||
cp /usr/share/doc/grocy/apache2-grocy.conf /etc/apache2/sites-available/grocy.conf
|
||||
a2ensite grocy
|
||||
systemctl restart apache2
|
||||
|
||||
```
|
||||
|
||||
#### joplin-server
|
||||
|
||||
```bash
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
|
||||
id gotify &> /dev/null || useradd gotify -r -s /bin/false -md /var/lib/gotify
|
||||
|
||||
chown -R www-data:www-data /var/lib/grocy/data/
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
STEP="envinit prebuild build makedeb"
|
||||
|
||||
envinit() {
|
||||
apt-get install -y --no-install-recommends wget ca-certificates gnupg2 composer git php-simplexml php-gd fakeroot dpkg
|
||||
apt-get install -y --no-install-recommends wget ca-certificates gnupg2 composer git php-simplexml php-gd fakeroot dpkg unzip
|
||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||
apt-get update
|
||||
|
@ -32,7 +32,7 @@ makedeb(){
|
|||
cp ${PATH_DEB}/usr/share/grocy/config-dist.php ${PATH_DEB}/etc/grocy/config.php
|
||||
mv ${PATH_DEB}/usr/share/grocy/data ${PATH_DEB}/var/lib/grocy/
|
||||
ln -s /var/lib/grocy/data/ ${PATH_DEB}/usr/share/grocy/data
|
||||
ln -s /etc/grocy/config.php ${PATH_DEB}/usr/share/grocy/config.php
|
||||
ln -s /etc/grocy/config.php ${PATH_DEB}/usr/share/grocy/data/config.php
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" /tmp/dist/rootfs/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build /tmp/dist/rootfs/ /tmp/dist/
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/etc/default/standardnotes-web
|
|
@ -1,8 +0,0 @@
|
|||
Package: standardnotes-web
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: nodejs
|
||||
Maintainer: Thomas Legay <thomas@syngate.fr>
|
||||
Description: standardnotes web
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
id standardnotes-web &> /dev/null || useradd standardnotes-web -r -s /bin/false -md /usr/lib/standardnotes/web
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
RAILS_ENV=production
|
||||
PORT=3004
|
||||
WEB_CONCURRENCY=0
|
||||
RAILS_LOG_TO_STDOUT=true
|
||||
# Log Level options: "INFO" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"
|
||||
RAILS_LOG_LEVEL=INFO
|
||||
RAILS_SERVE_STATIC_FILES=true
|
||||
SECRET_KEY_BASE=test
|
||||
APP_HOST=https://notes.lgy.fr
|
||||
|
||||
EXTENSIONS_MANAGER_LOCATION=extensions/extensions-manager/dist/index.html
|
||||
SF_DEFAULT_SERVER=https://api.notes.lgy.fr
|
||||
|
||||
# Development options
|
||||
DEV_DEFAULT_SYNC_SERVER=https://api.notes.lgy.fr
|
||||
DEV_EXTENSIONS_MANAGER_LOCATION=public/extensions/extensions-manager/dist/index.html
|
||||
ENABLE_UNFINISHED_FEATURES=false
|
||||
DEV_WEBSOCKET_URL=https://notes.lgy.fr/ws
|
||||
|
||||
# NewRelic (Optional)
|
||||
NEW_RELIC_ENABLED=false
|
||||
NEW_RELIC_THREAD_PROFILER_ENABLED=false
|
||||
NEW_RELIC_LICENSE_KEY=
|
||||
NEW_RELIC_APP_NAME=Web
|
||||
NEW_RELIC_BROWSER_MONITORING_AUTO_INSTRUMENT=false
|
|
@ -1,16 +0,0 @@
|
|||
[Unit]
|
||||
Description=standardnote web
|
||||
Documentation=https://github.com/standardnotes/web
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=standardnotes
|
||||
Group=standardnotes
|
||||
EnvironmentFile=/etc/default/standardnotes-web
|
||||
WorkingDirectory=/usr/lib/standardnotes/web
|
||||
ExecStart=/usr/bin/npm run start
|
||||
Restart=on-failure
|
||||
RestartSec=60
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,32 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
STEP="envinit prebuild build makedeb"
|
||||
|
||||
envinit() {
|
||||
apt install -y --no-install-recommends git build-essential python2 wget ruby-dev libxml2 libz-dev
|
||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||
apt-get update
|
||||
apt-get install -y yarn nodejs
|
||||
}
|
||||
|
||||
prebuild(){
|
||||
GIT_VERSION=$1
|
||||
git clone --depth 1 -b ${GIT_VERSION} https://github.com/standardnotes/web.git /tmp/web
|
||||
}
|
||||
|
||||
build() {
|
||||
cd /tmp/web
|
||||
PATH=$PATH:/tmp/web/bin
|
||||
npm install
|
||||
npm run build
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
GIT_VERSION=$1
|
||||
DEB_VERSION=$2
|
||||
PATH_DEB=/tmp/dist/rootfs
|
||||
|
||||
cp -fr /tmp/web/* ${PATH_DEB}/usr/lib/standardnotes/web/
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
APP=standardnotes-web
|
||||
VERSION=10.9.0
|
||||
GIT_VERSION=$VERSION
|
||||
DEB_VERSION=$VERSION-1
|
||||
DEBIAN_VERSION_CODENAME=bullseye
|
||||
IMAGE_SIZE=
|
||||
|
||||
source ./lib/function.sh
|
Loading…
Reference in New Issue