Compare commits
2 Commits
bb252c1d47
...
7ab3cb6c59
Author | SHA1 | Date | |
---|---|---|---|
7ab3cb6c59 | |||
2e4d350c7f |
21
pillar/role/web-proxy.sls
Normal file
21
pillar/role/web-proxy.sls
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{%- from slspath ~ '/../map.jinja' import listen_ips -%}
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
snippets:
|
||||||
|
robots:
|
||||||
|
- location /robots.txt:
|
||||||
|
- root: /srv/www/htdocs
|
||||||
|
php-fastcgi:
|
||||||
|
- 'location ~* \.php$':
|
||||||
|
- fastcgi_index: index.php
|
||||||
|
- fastcgi_pass: unix:/run/php-fpm/php-fpm.sock
|
||||||
|
- 'include': fastcgi_params
|
||||||
|
- fastcgi_param: SCRIPT_FILENAME $document_root$fastcgi_script_name
|
||||||
|
{%- if listen_ips | length %}
|
||||||
|
listen:
|
||||||
|
{%- for ip in listen_ips %}
|
||||||
|
- listen: {{ ip }}:443 ssl http2
|
||||||
|
{%- endfor %}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
|
|
@ -32,6 +32,7 @@ libertacasa_rpm_repository:
|
|||||||
- gpgcheck: 1
|
- gpgcheck: 1
|
||||||
- gpgkey: {{ repokey }}
|
- gpgkey: {{ repokey }}
|
||||||
- priority: 110
|
- priority: 110
|
||||||
|
- refresh: True
|
||||||
- require:
|
- require:
|
||||||
- cmd: libertacasa_rpm_key
|
- cmd: libertacasa_rpm_key
|
||||||
|
|
||||||
|
5
salt/role/web-proxy.sls
Normal file
5
salt/role/web-proxy.sls
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
include:
|
||||||
|
- nginx.pkg
|
||||||
|
- nginx.config
|
||||||
|
- nginx.snippets
|
||||||
|
- nginx.servers
|
Loading…
x
Reference in New Issue
Block a user