10000 GitHub - stefanpejcic/OpenPanel-FTP: 🗂️ Small and flexible docker image with vsftpd server
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

stefanpejcic/OpenPanel-FTP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FTP module for OpenPanel

Small and flexible docker image with vsftpd server + OpenPanel module to allow users to manage ftp sub-users.

Usage

This image can be used in two ways:

  • as an FTP module for OpenPanel
  • as a standalone FTP server

OpenPanel Module

To install FTP on OpenPanel server run the following command:

opencli ftp-setup

To create new FTP accounts:

opencli ftp-add <NEW_USERNAME> <NEW_PASSWORD> <FOLDER> <OPENPANEL_USERNAME>

standalone Docker

Installation:

docker run -d \
    -p "21:21" \
    -p 21000-21010:21000-21010 \
    --restart=always \
    --name=openadmin_ftp \
    -v /home:/home \
    -v /etc/openpanel/ftp/users:/etc/openpanel/ftp/users
    --memory="1g" --cpus="1" \
    openpanel/ftp

Adding accounts:

# to create temporary account *(until docker restart):
docker exec -it openadmin_ftp sh -c 'echo -e "${PASSWORD}\n${PASSWORD}" | adduser -h $DIRECTORY -s /sbin/nologin $USERNAME'

# to create permanent ftp account that will be created on docker restart:
echo "$USERNAME|$PASSWORD|$DIRECTORY" >> /etc/openpanel/ftp/users/users.list

Todo:

  • quotas
  • limits in ftp accounts per user
  • create groups
  • openpanel interface
  • openadmin interface
  • additional tweaks: ssl protocols, resource limiting..

About

🗂️ Small and flexible docker image with vsftpd server

Topics

Resources

Stars

Watchers

Forks

Languages

  • Shell 89.9%
  • Dockerfile 10.1%
0