Skip to content

Up1-docker: Docker container for a Client-side Encrypted Image Host

Notifications You must be signed in to change notification settings

alexdatur/Up1-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is Up1-docker

Dockerfile for Up1, a client-side encrypted anonymous file photo hosting service

How to use Up1-docker

1. Clone repo:

$ cd /opt/
$ git clone https://github.com/alexdatur/Up1-docker.git
$ cd /opt/Up1-docker/

2. Edit the Dockerfile:

$ nano Dockerfile
EXPOSE 9000:9000

ENV HTTP="true" \
	HTTP_LISTEN="0.0.0.0:9000" \
	HTTPS="false" \
        API_KEY="something_really_random" \
	DELETE_KEY="another_random_string" \
	MAX_FILE_SIZE=100000000 \
	SERVER="" \
	FOOTER=""

RUN apt-get install -y git && \
	cd /srv && \
	git clone https://github.com/Upload/Up1 && \
	cd Up1/server && npm install && \
	apt-get remove -y git

WORKDIR /srv/Up1/server

COPY server.conf.template server.conf.template
COPY config.js.template ../client/config.js.template
COPY genconfig.sh genconfig.sh
COPY entrypoint.sh entrypoint.sh

RUN chmod +x genconfig.sh entrypoint.sh

ENTRYPOINT /srv/Up1/server/entrypoint.sh

edit this lines:

API_KEY="something_really_random" \
DELETE_KEY="another_random_string" \
MAX_FILE_SIZE=100000000 \

3. Save changes

4. Rebuild the container:

$ docker build -t up1 .

5. Start container:

$ docker run --name up1 -p 9000:9000 -v /path/to/local/storage/:/srv/Up1/i/ up1

HTTPS is not supported cause it intended to use reverse proxy in front container for HTTPS.

About

Up1-docker: Docker container for a Client-side Encrypted Image Host

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 54.1%
  • Dockerfile 45.9%