mirror of
				https://github.com/9001/copyparty.git
				synced 2025-10-31 04:32:20 -06:00 
			
		
		
		
	* move service files from contrib/package/arch/ to /contrib/systemd/ * add simpler default copyparty.conf that puts users in jail * remove warning about .conf files in ~/.config/copyparty/ * update PKGBUILD with changes * add links to configuration examples in index.md * fix link to the example config * update README.md arch instructions --------- Co-authored-by: icxes <icxes@dev.null@need.moe> Co-authored-by: ed <s@ocv.me>
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
| # this will start `/usr/bin/copyparty`
 | |
| # in a chroot, preventing accidental access elsewhere,
 | |
| # and read copyparty config from `/etc/copyparty/copyparty.conf`
 | |
| #
 | |
| # expose additional filesystem locations to copyparty
 | |
| #   by listing them between the last `%i` and `--`
 | |
| #
 | |
| # `%i %i` = user/group to run copyparty as; can be IDs (1000 1000)
 | |
| #   the %i refers to whatever you put after the prisonparty@
 | |
| #   so with prisonparty@foo.service, %i == foo
 | |
| #
 | |
| # unless you add -q to disable logging, you may want to remove the
 | |
| #   following line to allow buffering (slightly better performance):
 | |
| #   Environment=PYTHONUNBUFFERED=x
 | |
| 
 | |
| [Unit]
 | |
| Description=copyparty file server
 | |
| 
 | |
| [Service]
 | |
| Type=notify
 | |
| SyslogIdentifier=prisonparty
 | |
| WorkingDirectory=/var/lib/copyparty-jail
 | |
| Environment=PYTHONUNBUFFERED=x
 | |
| Environment=PRTY_CONFIG=/etc/copyparty/copyparty.conf
 | |
| ExecReload=/bin/kill -s USR1 $MAINPID
 | |
| 
 | |
| # user to run as + where the TLS certificate is (if any)
 | |
| User=%i
 | |
| Environment=XDG_CONFIG_HOME=/home/%i/.config
 | |
| 
 | |
| # run copyparty
 | |
| ExecStart=/bin/bash /usr/bin/prisonparty /var/lib/copyparty-jail %i %i \
 | |
|   /etc/copyparty \
 | |
|   -- \
 | |
|   /usr/bin/python3 /usr/bin/copyparty
 | |
| 
 | |
| [Install]
 | |
| WantedBy=multi-user.target
 |