|
| 1 | +--- |
| 2 | +display_name: copyparty |
| 3 | +description: A web based file explorer alternative to Filebrowser. |
| 4 | +icon: ../../../../.icons/copyparty.svg |
| 5 | +verified: false |
| 6 | +tags: [files, filebrowser, web, copyparty] |
| 7 | +--- |
| 8 | + |
| 9 | +# copyparty |
| 10 | + |
| 11 | +<!-- Describes what this module does --> |
| 12 | + |
| 13 | +This module installs Copyparty, an alternative to Filebrowser. |
| 14 | +[Copyparty](https://github.com/9001/copyparty) is a portable file server with accelerated resumable uploads, dedup, WebDAV, FTP, TFTP, zeroconf, media indexer, thumbnails++ all in one file, no deps |
| 15 | + |
| 16 | +```tf |
| 17 | +module "copyparty" { |
| 18 | + count = data.coder_workspace.me.start_count |
| 19 | + source = "registry.coder.com/djarbz/copyparty/coder" |
| 20 | + version = "0.1.0" |
| 21 | +} |
| 22 | +``` |
| 23 | + |
| 24 | +<!-- Add a screencast or screenshot here put them in .images directory --> |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +## Examples |
| 29 | + |
| 30 | +### Example 1 |
| 31 | + |
| 32 | +Some basic command line options: |
| 33 | + |
| 34 | +```tf |
| 35 | +module "copyparty" { |
| 36 | + count = data.coder_workspace.me.start_count |
| 37 | + source = "registry.coder.com/djarbz/copyparty/coder" |
| 38 | + version = "0.1.0" |
| 39 | + agent_id = coder_agent.example.id |
| 40 | + arguments = [ |
| 41 | + "-v", "/home/coder/:/home:r", # Share home directory (read-only) |
| 42 | + "-v", "${local.repo_dir}:/repo:rw", # Share project directory (read-write) |
| 43 | + "-e2dsa", # Enables general file indexing" |
| 44 | + ] |
| 45 | +} |
| 46 | +``` |
| 47 | + |
| 48 | +### Example 2 |
| 49 | + |
| 50 | +```tf |
| 51 | +module "copyparty" { |
| 52 | + count = data.coder_workspace.me.start_count |
| 53 | + source = "registry.coder.com/djarbz/copyparty/coder" |
| 54 | + version = "0.1.0" |
| 55 | + agent_id = coder_agent.example.id |
| 56 | + subdomain = true |
| 57 | + arguments = [ |
| 58 | + "-v", "/tmp:/tmp:r", # Share tmp directory (read-only) |
| 59 | + "-v", "/home/coder/:/home:rw", # Share home directory (read-write) |
| 60 | + "-v", "${local.root_dir}:/work:A:c,dotsrch", # Share work directory (All Perms) |
| 61 | + "-e2dsa", # Enables general file indexing" |
| 62 | + "--re-maxage", "900", # Rescan filesystem for changes every SEC |
| 63 | + "--see-dots", # Show dotfiles by default if user has correct permissions on volume |
| 64 | + "--xff-src=lan", # List of trusted reverse-proxy CIDRs (comma-separated) or `lan` for private IPs. |
| 65 | + "--rproxy", "1", # Which ip to associate clients with, index of X-FWD IP. |
| 66 | + ] |
| 67 | +} |
| 68 | +``` |
0 commit comments