From e6269aa04a0c3605e16d60cde4bb33c8329ecad1 Mon Sep 17 00:00:00 2001 From: aptalca Date: Fri, 7 Feb 2020 18:08:37 -0500 Subject: [PATCH] add http auth --- README.md | 13 ++++++++++--- readme-vars.yml | 7 +++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b6ed95d..026d414 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,10 @@ docker create \ -e PGID=1000 \ -e TZ=Europe/London \ -e GITURL=https://github.com/linuxserver/docker-cloud9.git `#optional` \ + -e USERNAME= `#optional` \ + -e PASSWORD= `#optional` \ -p 8000:8000 \ - -v :/code `#optional` \ + -v /path/to/your/code:/code `#optional` \ -v /var/run/docker.sock:/var/run/docker.sock `#optional` \ --restart unless-stopped \ linuxserver/cloud9 @@ -104,8 +106,10 @@ services: - PGID=1000 - TZ=Europe/London - GITURL=https://github.com/linuxserver/docker-cloud9.git #optional + - USERNAME= #optional + - PASSWORD= #optional volumes: - - :/code #optional + - /path/to/your/code:/code #optional - /var/run/docker.sock:/var/run/docker.sock #optional ports: - 8000:8000 @@ -121,8 +125,10 @@ Container images are configured using parameters passed at runtime (such as thos | `-p 8000` | The port for the Cloud9 web interface | | `-e PUID=1000` | for UserID - see below for explanation | | `-e PGID=1000` | for GroupID - see below for explanation | -| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London, this is required for Radarr | +| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London | | `-e GITURL=https://github.com/linuxserver/docker-cloud9.git` | Specify a git repo to checkout on first startup | +| `-e USERNAME=` | Optionally specify a username for http auth | +| `-e PASSWORD=` | Optionally specify a password for http auth (if USERNAME and PASSWORD are not set, there will be no http auth) | | `-v /code` | Optionally if you want to mount up a local folder of code instead of checking out | | `-v /var/run/docker.sock` | Needed if you plan to use Docker or compose commands | @@ -223,4 +229,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **07.02.20:** - Add optional http auth. * **02.06.19:** - Initial Release. diff --git a/readme-vars.yml b/readme-vars.yml index 08c40f6..0ed5c86 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -30,16 +30,18 @@ param_ports: - { external_port: "8000", internal_port: "8000", port_desc: "The port for the Cloud9 web interface" } param_usage_include_env: true param_env_vars: - - { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London, this is required for Radarr"} + - { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"} # optional params opt_param_usage_include_vols: true opt_param_volumes: - - { vol_path: "/code", vol_host_path: "", desc: "Optionally if you want to mount up a local folder of code instead of checking out" } + - { vol_path: "/code", vol_host_path: "/path/to/your/code", desc: "Optionally if you want to mount up a local folder of code instead of checking out" } - { vol_path: "/var/run/docker.sock", vol_host_path: "/var/run/docker.sock", desc: "Needed if you plan to use Docker or compose commands" } opt_param_usage_include_env: true opt_param_env_vars: - { env_var: "GITURL", env_value: "https://github.com/linuxserver/docker-cloud9.git", desc: "Specify a git repo to checkout on first startup"} + - { env_var: "USERNAME", env_value: "", desc: "Optionally specify a username for http auth"} + - { env_var: "PASSWORD", env_value: "", desc: "Optionally specify a password for http auth (if USERNAME and PASSWORD are not set, there will be no http auth)"} # application setup block app_setup_block_enabled: true @@ -48,5 +50,6 @@ app_setup_block: | # changelog changelogs: + - { date: "07.02.20:", desc: "Add optional http auth." } - { date: "02.06.19:", desc: "Initial Release." }