You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,18 @@ docker run -d -e VIRTUAL_HOST=your.domain.com \
95
95
96
96
> 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.
97
97
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`.
0 commit comments