Sign inSign up

4freevip/caddy

By 4freevip

Updated over 4 years ago

provide authentication for application

Image
0

201

4freevip/caddy repository overview

Debian+VNC+Caddy +thunderbird (use caddy web to provide authentication)

1.$sudo docker volume create thunderbird-data 2.$sudo docker network create thunderbird-net

#(don't expose the applicaion port)

3.$sudo docker run --detach --restart=always --volume=thunderbird-data:/data --net=thunderbird-net --name=thunderbird-app 4freevip/thunderbird:1.1

4.Caddy v2 requires you to hash your desired password. Run the following command and remember to replace 'https://www.4free.vip' with a strong password of your choosing:

$sudo docker pull 4freevip/caddy:1.0

$sudo docker run --rm -it 4freevip/caddy:1.0 caddy hash-password -plaintext 'https://www.4free.vip' JDJhJDEwJDBhU1VMLm5rWVVjZTVLYURMODJaNGUvWDZLLkJCS1lUWVdURWxmN3B0UzRVMWQxclJydW5H #hash for you password

5.$sudo docker run --detach --restart=always --volume=thunderbird-data:/data --net=thunderbird-net --name=thunderbird-web --env=APP_USERNAME="4freevip" --env=APP_PASSWORD_HASH="JDJhJDEwJDBhU1VMLm5rWVVjZTVLYURMODJaNGUvWDZLLkJCS1lUWVdURWxmN3B0UzRVMWQxclJydW5H" --publish=8080:8080 4freevip/caddy:1.0

6.use browser to open http://your_server_ip:8080, and input the username/password to login:

username:4freevip

password:https://www.4free.vip

7.If you right-click on the black desktop, you should see a menu that allows you to access a terminal. If you middle-click, you should see a list of windows.

8.open http://your_server_ip:8080/files/ in a web browser. You should be able to access your files.

9.Optionally, you can try mounting http://your_server_ip:8080/webdav/ in a WebDAV client.

#use docker-compose to start the docker

$vi docker-compose.yml

version: "3" services: thunderbird: container_name: thunderbird-app image: 4freevip/thunderbird:1.1 restart: always volumes: - thunderbird-data:/data caddy: container_name: thunderbird-web image: 4freevip/caddy:1.0 volumes: - thunderbird-data:/data restart: always environment: APP_USERNAME: 4freevip APP_PASSWORD_HASH: JDJhJDEwJDBhU1VMLm5rWVVjZTVLYURMODJaNGUvWDZLLkJCS1lUWVdURWxmN3B0UzRVMWQxclJydW5H ports: - "8080:8080" depends_on: - thunderbird volumes: thunderbird-data:

$sudo docker-compose up -d

Tag summary

Content type

Image

Digest

Size

71.8 MB

Last updated

over 4 years ago

docker pull 4freevip/caddy:1.0