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
Minor updates
* Redirect weekly update to update log
Documentation updates
* Updating licence and readme to 2021
* Switching volumes / environment to be a table
* Adding Nginx configuration helpers
Version bump to 1.1.1
Nginx Proxy which uses [getssl](https://github.com/srvrco/getssl) to automate requesting and renewing SSL certificates via Let's Encrypt.
7
+
Nginx Proxy which uses [getssl](https://github.com/srvrco/getssl) to automate requesting and renewing SSL certificates via Let's Encrypt. Certificates are checked for renewal every week - the last check can be viewed in the `/ssl` volume.
8
8
9
9
## Ports
10
10
11
+
For SSL certificate requests to work correctly, ports 80 and 443 need mapping from the host to your proxy container, e.g. adding `"0.0.0.0:80:80"` to the ports section of your docker compose file.
12
+
11
13
* 80 (from base image)
12
14
* 443
13
15
14
-
## Environment Variables
15
-
16
-
Required:
16
+
## Volumes
17
17
18
-
```bash
19
-
LETS_ENCRYPT_EMAIL= # used for renewal notification emails
|`/sites`| Nginx site configuration, auto-generated on first run based on `conf.sh`. After they are generated, you can alter them to suit their needs. Running `nginx-regenerate` will wipe them all and start again. |
22
+
|`/ssl`| Contains auto-generated SSL configuration and certificates (for backup purposes). Your `conf.sh` file should be stored in here for auto-configuration (see `ssl-conf-sample.sh`). Certificate update log (`update.log`) will be created here weekly. |
21
23
22
-
Optional:
24
+
## Environment Variables
23
25
24
-
```bash
25
-
CLEAN_INSTALL=0 # clean all config and certificates before doing anything else
26
-
LETS_ENCRYPT_LIVE=0 # set to 1 to use live instead of staging server
27
-
SSL_DHPARAM_BITS=4096 # set to the number of bits to use for generating DH parameters
28
-
SSL_REDIRECT_INSECURE=0 # HTTPS redirection
29
-
SSL_REDIRECT_TO_CANONICAL=0 # canonical domain name redirection
30
-
SSL_REQUEST_ON_STARTUP=0 # automatically request certificates on startup
|`LETS_ENCRYPT_EMAIL`| A valid email address | Used by Lets Encrypt for notification emails. |*None* - **required**|
29
+
|`CLEAN_INSTALL`| 0 or 1 | If 1, all Nginx and SSL configuration and certificates will be deleted and regenerated. | 0 |
30
+
|`LETS_ENCRYPT_LIVE`| 0 or 1 | Only set to 1 (to request live certificates) when your config is correct - Lets Encrypt rate limit certificate requests. | 0 |
31
+
|`SSL_DHPARAM_BITS`| A valid integer | The size of your DHPARAM variables - adjust down only if you have limited processing resources. | 4096 |
32
+
|`SSL_REDIRECT_INSECURE`| 0 or 1 | If 1, all insecured (HTTP) requests will be upgraded by Nginx to secure (HTTPS). | 0 |
33
+
|`SSL_REDIRECT_TO_CANONICAL`| 0 or 1 | If 1, all requests will be redirected to the primary domain (defined in `conf.sh`). | 0 |
34
+
|`SSL_REQUEST_ON_STARTUP`| 0 or 1 | If 1, SSL certificates will be automatically requested - otherwise you'll need to use `ssl-request`. | 0 |
35
+
|`GETSSL_SKIP_HTTP_TOKEN_CHECK`| true or false | Set to true to enable `getssl`'s [skip HTTP token check](https://github.com/srvrco/getssl/wiki/Config-variables#skip_http_token_checkfalse). | false |
0 commit comments