First commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# What directory copyparty will see
|
||||
DATA_MOUNT_LOCATION=/srv/copyparty
|
||||
Executable
+64
@@ -0,0 +1,64 @@
|
||||
# rot actually YAML but lets pretend:
|
||||
# -*- mode: yaml -*-
|
||||
# vim: ft=yaml:
|
||||
|
||||
[global]
|
||||
e2dsa # enable file indexing and filesystem scanning
|
||||
e2ts # and enable multimedia indexing
|
||||
ansi # and colors in log messages
|
||||
z, qr
|
||||
|
||||
chpw
|
||||
ah-alg: argon2
|
||||
ah-salt: penisballs # optional
|
||||
ban-pw: 10,10,30
|
||||
# no-hash: . # Prevents up2k.db breakages
|
||||
|
||||
# disable logging to stdout/journalctl and log to a file instead;
|
||||
# $LOGS_DIRECTORY is usually /var/log/copyparty (comes from systemd)
|
||||
# and copyparty replaces %Y-%m%d with Year-MonthDay, so the
|
||||
# full path will be something like /var/log/copyparty/2023-1130.txt
|
||||
# (note: enable compression by adding .xz at the end)
|
||||
|
||||
# p: 80,443,3923 # listen on 80/443 as well (requires CAP_NET_BIND_SERVICE)
|
||||
p: 3923 # listen on another port
|
||||
df: 16 # stop accepting uploads if less than 16 GB free disk space
|
||||
ver # show copyparty version in the controlpanel
|
||||
grid # show thumbnails/grid-view by default
|
||||
# theme: 2 # monokai
|
||||
name: Friend sharing drive
|
||||
shr: /shr # For the ability to share folders I think?
|
||||
# stats, nos-dup # enable the prometheus endpoint, but disable the dupes counter (too slow)
|
||||
# no-robots, force-js # make it harder for search engines to read your server
|
||||
rproxy: -1 # -1 on subdomain, 1 on webroot (I think)
|
||||
#rp-loc: /copyparty # Webroot location, only for webroot access
|
||||
xff-src: 192.168.0.0/16
|
||||
|
||||
|
||||
[accounts]
|
||||
user: password
|
||||
admin: penisballs
|
||||
|
||||
[groups]
|
||||
admins: admin
|
||||
users: user, admin
|
||||
|
||||
#[/] # create a logical volume at "/" (the webroot)
|
||||
# /data # share the contents of the server's actual "/data" folder
|
||||
# accs:
|
||||
# r: * # Everyone with access to the website can read files
|
||||
# rw: @users # All logged in users have rw access
|
||||
# rwmda: @admins # admins get read-write-move-delete-admin
|
||||
|
||||
#[/media]
|
||||
# /data/media
|
||||
# accs:
|
||||
# r: * # Everyone with access to the website can read files
|
||||
# rwmda: @admins # admins get read-write-move-delete-admin
|
||||
# g: * # People can share links
|
||||
# flags:
|
||||
# fk: 4 # Links that are shared will have a URL that will have a 4-character password
|
||||
|
||||
# Prevent access to certain folders
|
||||
#[/media/trash]
|
||||
# /data/copyparty/media/trash
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
|
||||
services:
|
||||
copyparty:
|
||||
image: copyparty/ac:latest
|
||||
container_name: copyparty
|
||||
user: "1000:1000"
|
||||
env_file:
|
||||
.env
|
||||
ports:
|
||||
- 3923:3923
|
||||
volumes:
|
||||
#- /mnt/nas2/BACKUPS/server_backup:/data:z
|
||||
- ${DATA_MOUNT_LOCATION}:/data:z
|
||||
- ./copyparty:/cfg:z
|
||||
|
||||
environment:
|
||||
#LD_PRELOAD: /usr/lib/libmimalloc-secure.so.NOPE
|
||||
LD_PRELOAD: /usr/lib/libmimalloc-secure.so.2
|
||||
# enable mimalloc by replacing "NOPE" with "2" for a nice speed-boost (will use twice as much ram)
|
||||
|
||||
PYTHONUNBUFFERED: 1
|
||||
# ensures log-messages are not delayed (but can reduce speed a tiny bit)
|
||||
|
||||
stop_grace_period: 15s # thumbnailer is allowed to continue finishing up for 10s after the shutdown signal
|
||||
healthcheck:
|
||||
# hide it from logs with "/._" so it matches the default --lf-url filter
|
||||
test: ["CMD-SHELL", "wget --spider -q 127.0.0.1:3923/?reset=/._"]
|
||||
interval: 1m
|
||||
timeout: 2s
|
||||
retries: 5
|
||||
start_period: 15s
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
docker exec -it copyparty cat /cfg/copyparty/chpw.json
|
||||
Reference in New Issue
Block a user