mirror of
https://github.com/tborychowski/self-hosted-cookbook.git
synced 2025-01-22 19:38:30 +00:00
added joplin-webview to notes and nginx-webdav to cloud (#13)
* fix formating on libre-photos * Create nginx-webdav.md its a nginx fileserver using weddav module serving as a simple personal cloud storage * added Nginx-WebDav to cloud & file sharing * Create jolplin-web * Update jolplin-web * Delete jolplin-web * added md file extention * added jolin-web to notes
This commit is contained in:
parent
b6be5ca80f
commit
ffb19744a2
@ -99,6 +99,7 @@ The aims is to provide a ready-to-run recipes that you can just copy, paste and
|
||||
- [oasis](apps/cloud/oasis.md)
|
||||
- [Pydio](apps/cloud/pydio.md)
|
||||
- [Seafile](apps/cloud/seafile.md)
|
||||
- [Nginx-WebDav](apps/cloud/nginx-webdav.md)
|
||||
|
||||
|
||||
|
||||
@ -273,6 +274,7 @@ The aims is to provide a ready-to-run recipes that you can just copy, paste and
|
||||
|
||||
# Notes
|
||||
- [Joplin Server](apps/notes/joplin.md)
|
||||
- [Joplin WebView](apps/notes/joplin-web.md)
|
||||
- [Memos](apps/notes/memos.md)
|
||||
|
||||
|
||||
|
42
apps/cloud/nginx-webdav.md
Normal file
42
apps/cloud/nginx-webdav.md
Normal file
@ -0,0 +1,42 @@
|
||||
## docker-nginx-webdav-nononsense
|
||||
|
||||
aims to be a Docker image that enables a no-nonsense WebDAV system on the latest available nginx, stable and mainline. Serves a file server
|
||||
|
||||
<br>
|
||||
|
||||
- [Github repo](https://github.com/dgraziotin/docker-nginx-webdav-nononsense/)
|
||||
|
||||
## docker-compose-yml
|
||||
|
||||
```yml
|
||||
---
|
||||
services:
|
||||
nginxwebdav:
|
||||
container_name: nginxwebdav
|
||||
build:
|
||||
context: .
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./config:/config
|
||||
environment:
|
||||
- PUID=501
|
||||
- PGID=20
|
||||
- TZ=Europe/Berlin
|
||||
- WEBDAV_USERNAME=user
|
||||
- WEBDAV_PASSWORD=password
|
||||
- SERVER_NAMES=localhost
|
||||
- TIMEOUTS_S=1200 # these are seconds
|
||||
- CLIENT_MAX_BODY_SIZE=120M # must end with M(egabytes) or G(igabytes)
|
||||
ports:
|
||||
- 32080:80
|
||||
```
|
||||
|
||||
## Tips & Tricks
|
||||
|
||||
### customise nginx.conf
|
||||
|
||||
Change dav_access user:rw group:rw all:rw to "location" context to custoise client file permissions
|
||||
|
||||
and change dav_ethods to PUT, DELETE, MKCOL, COPY, and MOVE so that clients can erform any action
|
||||
|
||||
alternatively you can create a custom config under /config/custom-cont-init.d/
|
70
apps/notes/joplin-web.md
Normal file
70
apps/notes/joplin-web.md
Normal file
@ -0,0 +1,70 @@
|
||||
## Jolin-web
|
||||
|
||||
Joplin-vieweb purpose is to provide an online view of Joplin notes.
|
||||
It's running on a "Django server", running beside Joplin terminal app.
|
||||
|
||||
## Requirements
|
||||
|
||||
A Joplin server to that stores your notes
|
||||
|
||||
<br>
|
||||
|
||||
- [Github repo](https://github.com/joplin-vieweb)
|
||||
- [Docs](https://github.com/joplin-vieweb/joplin-vieweb/#installation--configuration-instructions)
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```yml
|
||||
---
|
||||
version: '3.4'
|
||||
|
||||
x-common-variables: &common-variables
|
||||
ORIGINS: "'http://localhost', 'http://192.168.1.24' , 'https://my-ddns-domain.com'"
|
||||
|
||||
services:
|
||||
django-joplin-vieweb:
|
||||
image: gri38/django-joplin-vieweb:latest
|
||||
depends_on:
|
||||
- joplin-terminal-xapi
|
||||
environment:
|
||||
<<: *common-variables
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- xxxx:8000
|
||||
volumes:
|
||||
- joplin:/root/.config/joplin:ro
|
||||
- joplin-vieweb:/root/.config/joplin-vieweb
|
||||
networks:
|
||||
- joplin-net
|
||||
|
||||
joplin-terminal-xapi:
|
||||
image: gri38/joplin-terminal-xapi:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- joplin:/root/.config/joplin
|
||||
networks:
|
||||
- joplin-net
|
||||
|
||||
volumes:
|
||||
joplin:
|
||||
joplin-vieweb:
|
||||
|
||||
networks:
|
||||
joplin-net: {}
|
||||
```
|
||||
|
||||
## Tips & Tricks
|
||||
|
||||
###
|
||||
You can access your notebooks: https://your_domain/joplin (⚠ don't forget the /joplin ⚠)
|
||||
|
||||
- first you set up url/admin and then login to url/joplin
|
||||
mind the /admin and /joplin
|
||||
|
||||
- for webdav sync you can select the nextcloud option
|
||||
|
||||
- To decryt the notes run
|
||||
|
||||
```sh
|
||||
docker exec -ti joplin-vieweb_joplin-terminal-xapi_1 joplin e2ee decrypt
|
||||
```
|
@ -143,7 +143,10 @@ services:
|
||||
container_name: librephotos-redis
|
||||
restart: unless-stopped
|
||||
```
|
||||
## Librephotos backup/restore
|
||||
|
||||
## Tips & tricks
|
||||
|
||||
### Librephotos backup/restore
|
||||
|
||||
Docker offers volumes so /data and /code/protected_media are safely mounted on host. Simply rsync backup of these dirs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user