Add example
This commit is contained in:
parent
3125f9dbcc
commit
cfd7e670f4
@ -75,6 +75,11 @@ nginx:
|
|||||||
enable: True # Whether or not the service will be enabled/running or dead
|
enable: True # Whether or not the service will be enabled/running or dead
|
||||||
opts: {} # this partially exposes parameters of service.running / service.dead
|
opts: {} # this partially exposes parameters of service.running / service.dead
|
||||||
|
|
||||||
|
snippets: # You can use snippets to define often repeated configuration once and include it later
|
||||||
|
letsencrypt: # e.g. this can be included using "- include: 'snippets/letsencrypt.conf'"
|
||||||
|
- location ^~ /.well-known/acme-challenge/:
|
||||||
|
- proxy_pass: http://localhost:9999
|
||||||
|
|
||||||
server:
|
server:
|
||||||
opts: {} # this partially exposes file.managed parameters as they relate to the main nginx.conf file
|
opts: {} # this partially exposes file.managed parameters as they relate to the main nginx.conf file
|
||||||
|
|
||||||
@ -139,6 +144,7 @@ nginx:
|
|||||||
- $uri
|
- $uri
|
||||||
- $uri/ =404
|
- $uri/ =404
|
||||||
- test: something else
|
- test: something else
|
||||||
|
- include 'snippets/letsencrypt.conf'
|
||||||
|
|
||||||
# The above outputs:
|
# The above outputs:
|
||||||
# server {
|
# server {
|
||||||
|
Loading…
Reference in New Issue
Block a user