Skip to content

Commit 08caac5

Browse files
authored
Add Basic Auth support.
1 parent 9b4964c commit 08caac5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@ docker run -d -e VIRTUAL_HOST=your.domain.com \
9595

9696
> Please note that when running a new container to generate certificates with LetsEncrypt (`-e LETSENCRYPT_HOST=your.domain.com`), it may take a few minutes, depending on multiples circunstances.
9797
98+
## Futher Options
99+
100+
1. Basic Authentication Support
101+
102+
In order to be able to secure your virtual host with basic authentication, you must create a file named as its equivalent VIRTUAL_HOST variable on directory ${NGINX_FILES_PATH}/htpasswd/$VIRTUAL_HOST.
103+
104+
After set up this webproxy, you will do the following:
105+
```bash
106+
sudo sh -c "echo -n 'user_name:' >> ${NGINX_FILES_PATH}/your_domain.com"
107+
sudo sh -c "openssl passwd -apr1 >> ${NGINX_FILES_PATH}/your_domain.com"
108+
```
109+
> Please substitute the `${NGINX_FILES_PATH}` with your path information and your virtual host name as `your_domain.com`.
98110
99111
## Testing your proxy with scripts preconfigured
100112

0 commit comments

Comments
 (0)