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
This script will walk you through all config process.
61
61
@@ -81,21 +81,21 @@ the default please update the option *'NETWORK'* in the examples below before ru
81
81
82
82
- Simple site without Let's Encrypt certificate
83
83
```bash
84
-
$ docker run -d -e VIRTUAL_HOST=your.domain.com \
85
-
--network=proxy \
86
-
--name my_app \
87
-
httpd:alpine
84
+
docker run -d -e VIRTUAL_HOST=your.domain.com \
85
+
--network=proxy \
86
+
--name my_app \
87
+
httpd:alpine
88
88
```
89
89
90
90
- To have SSL in your web/app you must add the option `-e LETSENCRYPT_HOST=your.domain.com`, as follow:
91
91
92
92
```bash
93
-
$ docker run -d -e VIRTUAL_HOST=your.domain.com \
94
-
-e LETSENCRYPT_HOST=your.domain.com \
95
-
-e LETSENCRYPT_EMAIL=your.email@your.domain.com \
96
-
--network=proxy \
97
-
--name my_app \
98
-
httpd:alpine
93
+
docker run -d -e VIRTUAL_HOST=your.domain.com \
94
+
-e LETSENCRYPT_HOST=your.domain.com \
95
+
-e LETSENCRYPT_EMAIL=your.email@your.domain.com \
96
+
--network=proxy \
97
+
--name my_app \
98
+
httpd:alpine
99
99
```
100
100
101
101
> You don´t need to open port *443* in your container, the certificate validation is managed by the web proxy
@@ -112,8 +112,8 @@ In order to be able to secure your virtual host with basic authentication, you m
112
112
within `${NGINX_FILES_PATH}/htpasswd/${VIRTUAL_HOST}` via:
113
113
114
114
```bash
115
-
$ sudo sh -c "echo -n '[username]:' >> ${NGINX_FILES_PATH}/htpasswd/${VIRTUAL_HOST}"
116
-
$ sudo sh -c "openssl passwd -apr1 >> ${NGINX_FILES_PATH}/htpasswd/${VIRTUAL_HOST}"
115
+
sudo sh -c "echo -n '[username]:' >> ${NGINX_FILES_PATH}/htpasswd/${VIRTUAL_HOST}"
116
+
sudo sh -c "openssl passwd -apr1 >> ${NGINX_FILES_PATH}/htpasswd/${VIRTUAL_HOST}"
117
117
```
118
118
119
119
> Please replace the `${NGINX_FILES_PATH}` with real path to information, replace `[username]` with your username and `${VIRTUAL_HOST}` with your host's domain. You will be prompted for a password.
Where *${NGINX_WEB}* is your proxy container name, which in the original `.env` file is set as *nginx-web*.
161
161
162
+
5.**sudo** options
163
+
164
+
If you need to save the nginx-proxy data files in a folder which the user running 'fresh-start.sh' script does not have access, you might accomplish that using _sudo_. In order to allow the script to run some commands with _sudo_ you need to set _true_ to the variable ['ALLOW_RUN_WITH_SUDO'](https://github.com/evertramos/nginx-proxy-automation/blob/d48b2477ed28cbda37738046079e35df219ba3e9/.env.sample#L20) at '.env.sample' file **before** running fresh-start.sh script, as of:
0 commit comments