lol
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
|
||||
;
|
||||
[subrepo]
|
||||
remote = ssh://git@github.com/1001Pharmacies/docker-vsftpd-s3
|
||||
remote = ssh://git@github.com/aynicos/docker-vsftpd-s3
|
||||
branch = master
|
||||
commit = 6d5b3310525d8cb1be32f0461a8633aba8641b24
|
||||
parent = 162fd1a1c05971c62996f6be53522c74559f567b
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
FROM alpine:3.11 as dist
|
||||
LABEL maintainer "yann.autissier@gmail.com"
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
ARG S3FS_VERSION=v1.85
|
||||
|
||||
LABEL maintainer aynic.os <support+docker@asycn.io>
|
||||
|
||||
# Install s3fs-fuse and sftpserver
|
||||
RUN apk --no-cache upgrade \
|
||||
&& apk --no-cache add --virtual .build-deps \
|
||||
@@ -53,17 +53,5 @@ EXPOSE 1022/tcp
|
||||
EXPOSE 65000/tcp
|
||||
VOLUME ["/var/log"]
|
||||
|
||||
FROM dist as local
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
FROM local as debug
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
FROM local as tests
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
FROM tests as preprod
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
FROM preprod as prod
|
||||
FROM dist as master
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 1001Pharmacies
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
|
||||
@@ -10,7 +10,7 @@ PASV_MIN_PORT=${PASV_MIN_PORT:-65000}
|
||||
PASV_MAX_PORT=${PASV_MAX_PORT:-65535}
|
||||
|
||||
# VSFTPD Banner
|
||||
FTPD_BANNER=${FTPD_BANNER:-1001Pharmacies FTP Server}
|
||||
FTPD_BANNER=${FTPD_BANNER:-FTP Server}
|
||||
|
||||
# FTP allowed commands
|
||||
# full command list : https://blog.vigilcode.com/2011/08/configure-secure-ftp-with-vsftpd/
|
||||
@@ -39,11 +39,11 @@ pasv_max_port=$PASV_MAX_PORT" > /etc/vsftpd.conf
|
||||
|
||||
# SSL certificate
|
||||
SSL_CERT_C=${SSL_CERT_C:-FR}
|
||||
SSL_CERT_ST=${SSL_CERT_ST:-Herault}
|
||||
SSL_CERT_L=${SSL_CERT_L:-Montpellier}
|
||||
SSL_CERT_O=${SSL_CERT_O:-1001Pharmacies}
|
||||
SSL_CERT_ST=${SSL_CERT_ST:-LaGaule}
|
||||
SSL_CERT_L=${SSL_CERT_L:-Mars}
|
||||
SSL_CERT_O=${SSL_CERT_O:-1nation}
|
||||
SSL_CERT_OU=${SSL_CERT_OU:-Hosting}
|
||||
SSL_CERT_CN=${SSL_CERT_CN:-ftp.1001pharmacies.com}
|
||||
SSL_CERT_CN=${SSL_CERT_CN:-ftp}
|
||||
|
||||
# Create SSL certificate
|
||||
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -addext extendedKeyUsage=serverAuth -addext subjectAltName=DNS:${SSL_CERT_CN} -subj "/C=${SSL_CERT_C}/ST=${SSL_CERT_ST}/L=${SSL_CERT_L}/O=${SSL_CERT_O}/OU=${SSL_CERT_OU}/CN=${SSL_CERT_CN}" -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem 2>/dev/null && echo "
|
||||
|
||||
Reference in New Issue
Block a user