2019-04-12 23:32:53 +02:00
|
|
|
|
|
|
|
# Simple pillar setup
|
|
|
|
# - snippet letsencrypt
|
|
|
|
# - remove 'default' site
|
|
|
|
# - create 'mysite' site
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
ng:
|
|
|
|
snippets:
|
|
|
|
letsencrypt:
|
|
|
|
- location ^~ /.well-known/acme-challenge/:
|
|
|
|
- proxy_pass: http://localhost:9999
|
2019-04-26 17:11:51 +02:00
|
|
|
server:
|
|
|
|
config:
|
|
|
|
http:
|
|
|
|
### module ngx_http_log_module example
|
|
|
|
log_format: |-
|
|
|
|
main '$remote_addr - $remote_user [$time_local] $status '
|
|
|
|
'"$request" $body_bytes_sent "$http_referer" '
|
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"'
|
2019-04-12 23:32:53 +02:00
|
|
|
servers:
|
|
|
|
managed:
|
|
|
|
default:
|
|
|
|
deleted: True
|
|
|
|
enabled: False
|
|
|
|
config: {}
|
|
|
|
|
|
|
|
mysite:
|
|
|
|
enabled: True
|
|
|
|
config:
|
|
|
|
- server:
|
|
|
|
- server_name: localhost
|
|
|
|
- listen:
|
|
|
|
- '80 default_server'
|
|
|
|
- index: 'index.html index.htm'
|
|
|
|
- location ~ .htm:
|
|
|
|
- try_files: '$uri $uri/ =404'
|
|
|
|
- include: 'snippets/letsencrypt.conf'
|
|
|
|
|