Add pad
This commit is contained in:
parent
688d563e33
commit
2b84b5afdd
@ -22,3 +22,4 @@ photos.guiotte.fr. IN CNAME dm.guiotte.fr.
|
|||||||
dl.guiotte.fr. IN CNAME dm.guiotte.fr.
|
dl.guiotte.fr. IN CNAME dm.guiotte.fr.
|
||||||
kdoc.guiotte.fr. IN CNAME dm.guiotte.fr.
|
kdoc.guiotte.fr. IN CNAME dm.guiotte.fr.
|
||||||
sync.guiotte.fr. IN CNAME dm.guiotte.fr.
|
sync.guiotte.fr. IN CNAME dm.guiotte.fr.
|
||||||
|
pad.guiotte.fr. IN CNAME dm.guiotte.fr.
|
||||||
|
|||||||
Binary file not shown.
@ -228,6 +228,46 @@ services:
|
|||||||
- nextcloud-db-pw
|
- nextcloud-db-pw
|
||||||
|
|
||||||
|
|
||||||
|
hedgedoc:
|
||||||
|
image: lscr.io/linuxserver/hedgedoc:latest
|
||||||
|
container_name: hedgedoc
|
||||||
|
depends_on:
|
||||||
|
- hedgedoc-db
|
||||||
|
environment:
|
||||||
|
<<: *common-environment
|
||||||
|
DB_HOST: hedgedoc-db
|
||||||
|
DB_PORT: 3306
|
||||||
|
DB_USER: hedgedoc
|
||||||
|
DB_NAME: hedgedoc
|
||||||
|
FILE__DB_PASS: /run/secrets/hedgedoc-db-pw
|
||||||
|
CMD_DOMAIN: pad.guiotte.fr
|
||||||
|
CMD_PROTOCOL_USESSL: true
|
||||||
|
CMD_ALLOW_FREEURL: true
|
||||||
|
CMD_REQUIRE_FREEURL_AUTHENTICATION: true
|
||||||
|
volumes:
|
||||||
|
- hedgedoc-config:/config
|
||||||
|
restart: unless-stopped
|
||||||
|
secrets:
|
||||||
|
- hedgedoc-db-pw
|
||||||
|
|
||||||
|
|
||||||
|
hedgedoc-db:
|
||||||
|
image: lscr.io/linuxserver/mariadb:latest
|
||||||
|
container_name: hedgedoc-db
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- hedgedoc-db:/config
|
||||||
|
environment:
|
||||||
|
<<: *common-environment
|
||||||
|
FILE__MYSQL_ROOT_PASSWORD: /run/secrets/hedgedoc-db-root-pw
|
||||||
|
FILE__MYSQL_PASSWORD: /run/secrets/hedgedoc-db-pw
|
||||||
|
MYSQL_DATABASE: hedgedoc
|
||||||
|
MYSQL_USER: hedgedoc
|
||||||
|
secrets:
|
||||||
|
- hedgedoc-db-root-pw
|
||||||
|
- hedgedoc-db-pw
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
money-data:
|
money-data:
|
||||||
zotero-data:
|
zotero-data:
|
||||||
@ -241,6 +281,8 @@ volumes:
|
|||||||
nextcloud-config:
|
nextcloud-config:
|
||||||
nextcloud-db-config:
|
nextcloud-db-config:
|
||||||
ddclient-cache:
|
ddclient-cache:
|
||||||
|
hedgedoc-config:
|
||||||
|
hedgedoc-db:
|
||||||
|
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
@ -256,3 +298,7 @@ secrets:
|
|||||||
file: transmission-user.secret
|
file: transmission-user.secret
|
||||||
transmission-pw:
|
transmission-pw:
|
||||||
file: transmission-pw.secret
|
file: transmission-pw.secret
|
||||||
|
hedgedoc-db-root-pw:
|
||||||
|
file: hedgedoc-db-root-pw.secret
|
||||||
|
hedgedoc-db-pw:
|
||||||
|
file: hedgedoc-db-pw.secret
|
||||||
|
|||||||
BIN
hedgedoc-db-pw.secret
Normal file
BIN
hedgedoc-db-pw.secret
Normal file
Binary file not shown.
BIN
hedgedoc-db-root-pw.secret
Normal file
BIN
hedgedoc-db-root-pw.secret
Normal file
Binary file not shown.
48
swag/nginx/proxy-confs/hedgedoc.subdomain.conf
Normal file
48
swag/nginx/proxy-confs/hedgedoc.subdomain.conf
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
## Version 2023/05/31
|
||||||
|
# make sure you set the following environment variables in your docker arguments
|
||||||
|
# CMD_DOMAIN=hedgedoc.server.com
|
||||||
|
# CMD_URL_ADDPORT=false
|
||||||
|
# CMD_PROTOCOL_USESSL=true
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
server_name pad.*;
|
||||||
|
|
||||||
|
include /config/nginx/ssl.conf;
|
||||||
|
|
||||||
|
client_max_body_size 0;
|
||||||
|
|
||||||
|
# enable for ldap auth (requires ldap-location.conf in the location block)
|
||||||
|
#include /config/nginx/ldap-server.conf;
|
||||||
|
|
||||||
|
# enable for Authelia (requires authelia-location.conf in the location block)
|
||||||
|
#include /config/nginx/authelia-server.conf;
|
||||||
|
|
||||||
|
# enable for Authentik (requires authentik-location.conf in the location block)
|
||||||
|
#include /config/nginx/authentik-server.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
# enable the next two lines for http auth
|
||||||
|
#auth_basic "Restricted";
|
||||||
|
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||||
|
|
||||||
|
# enable for ldap auth (requires ldap-server.conf in the server block)
|
||||||
|
#include /config/nginx/ldap-location.conf;
|
||||||
|
|
||||||
|
# enable for Authelia (requires authelia-server.conf in the server block)
|
||||||
|
#include /config/nginx/authelia-location.conf;
|
||||||
|
|
||||||
|
# enable for Authentik (requires authentik-server.conf in the server block)
|
||||||
|
#include /config/nginx/authentik-location.conf;
|
||||||
|
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
set $upstream_app hedgedoc;
|
||||||
|
set $upstream_port 3000;
|
||||||
|
set $upstream_proto http;
|
||||||
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user