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
## Major updates
* **Breaking Change** configuration is now handled using a JSON file instead of `conf.sh`
* Using `jq` to query JSON configuration file
* Adding `ssl-conf-schema.json`
## Minor updates
* Removing bash config sample file
## Documentation updates
* Updating README with details of conf.json
## Build updates
* Removing latest tag from publish
Copy file name to clipboardExpand all lines: README.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@
7
7
8
8
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 day - the last check can be viewed in the `/ssl` volume.
9
9
10
+
As of v4, configuration is handled via a JSON file - see ssl-conf-sample.json for an example and ssl-conf-schema.json for the full file definition.
11
+
10
12
## Contents
11
13
12
14
*[Ports](#ports)
@@ -25,11 +27,11 @@ For SSL certificate requests to work correctly, ports 80 and 443 need mapping fr
|`/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. |
32
-
|`/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. |
|`/sites`| Nginx site configuration, auto-generated on first run based on `conf.json`. After they are generated, you can alter them to suit their needs. Running `nginx-regenerate` will wipe them all and start again.|
34
+
|`/ssl`| Contains auto-generated SSL configuration and certificates (for backup purposes). Your `conf.json` file should be stored in here for auto-configuration (see `ssl-conf-sample.json`). Certificate update log (`update.log`) will be created here daily. |
33
35
34
36
## Environment Variables
35
37
@@ -40,20 +42,20 @@ For SSL certificate requests to work correctly, ports 80 and 443 need mapping fr
40
42
|`PROXY_LETS_ENCRYPT_EMAIL`| A valid email address | Used by Lets Encrypt for notification emails. |*None* - **required**|
41
43
|`PROXY_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 |
42
44
|`PROXY_SSL_DHPARAM_BITS`| A valid integer | The size of your DHPARAM variables - adjust down only if you have limited processing resources. | 4096 |
43
-
|`PROXY_SSL_REDIRECT_TO_CANONICAL`| 0 or 1 | If 1, all requests will be redirected to the primary domain (defined in `conf.sh`).| 0 |
45
+
|`PROXY_SSL_REDIRECT_TO_CANONICAL`| 0 or 1 | If 1, all requests will be redirected to the primary domain (defined in `conf.json`). | 0 |
44
46
|`PROXY_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 |
|`nginx-regenerate`|-f: force | Removes non-custom Nginx configuration files (in `/sites`) and regenerates based on `conf.json` (with force, removes all).|
53
+
|`ssl-cleanup`|-m: mode | Removes SSL and Nginx configuration files and directories not defined in `conf.json` (mode 0 = dry run, 1 = live).|
54
+
|`ssl-init`|*None*| Initialises SSL configuration based on `conf.json`. |
55
+
|`ssl-regenerate`|*None*| Removes SSL configuration files (in `/ssl/certs`) and regenerates based on `conf.json`. |
56
+
|`ssl-regenerate-full`|*None*| Removes SSL configuration files (in `/ssl/certs`), as well as DH parameters, and regenerates based on `conf.json`. |
57
+
|`ssl-request`|*None*| Requests SSL certificates from Lets Encrypt. |
58
+
|`ssl-update`|*None*| Attempts to update SSL certificates manually. |
0 commit comments