https://github.com/ustclug/lugftp
FTP site of USTC Linux User Group
https://github.com/ustclug/lugftp
afp ftp ftp-site
Last synced: 11 months ago
JSON representation
FTP site of USTC Linux User Group
- Host: GitHub
- URL: https://github.com/ustclug/lugftp
- Owner: ustclug
- License: mit
- Created: 2016-10-05T19:19:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-22T09:13:17.000Z (about 3 years ago)
- Last Synced: 2023-08-31T09:06:54.872Z (almost 3 years ago)
- Topics: afp, ftp, ftp-site
- Language: Shell
- Homepage: https://ftp.ustclug.org
- Size: 42 KB
- Stars: 6
- Watchers: 11
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FTP site of USTC LUG
## Feature
* Public Sharing
* Private uploading
* User's home (auth via LDAP)
## Supported Protocol
* HTTP/HTTPS (read only)
* FTP
* FTPS
* SFTP
* ~~AFP~~ AFP support has been removed.
## Deployment
```shell
docker run -itd --restart=always \
-p 20-22:20-22 \
-p 80:80 \
-p 40000-40050:40000-40050 \
-v $LOCAL_DIR/data:/srv/ftp \
-v $LOCAL_DIR/log:/var/log \
-v $LOCAL_DIR/home:/home \
-e PRIVATE_PASSWD=secret \
-e PASV_ADDRESS=$PUBLIC_IP_ADDRESS \
ustclug/ftp
```
Security note: Please bind mount `/etc/ssh` (`-v $LOCAL_DIR/ssh:/etc/ssh`) in production, as the container image has its own host SSH keypair public and may gets middle-man attack.
### Available Environment Variables
| Name | Implication | Default Value |
| ---------------- | ---------------------------------------- | ------------- |
| PUBLIC_PASSWD | Password of public account "ftp" (read only) | ftp |
| PRIVATE_USERNAME | Private account name (write access) | lug |
| PRIVATE_PASSWD | Password of private account | password |
| PASV_ADDRESS | FTP PASV Mode Address | 127.0.0.1 |