8000 Add realip.conf · python/psf-salt@37743a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 37743a3

Browse files
committed
Add realip.conf
This commit introdcues a realip.conf nginx configuration file to be managed by salt.
1 parent 43b0c23 commit 37743a3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

salt/nginx/config/realip-nginx.jinja.conf

Whitespace-only changes.

salt/nginx/init.sls

Lines changed: 96BF 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ nginx:
9494
- require:
9595
- pkg: nginx
9696

97+
/etc/nginx/sites.d/realip.conf:
98+
file.managed:
99+
- source: salt://nginx/config/realip-nginx.jinja.conf
100+
- template: jinja
101+
- user: root
102+
- group: root
103+
- mode: "0644"
104+
- require:
105+
- file: /etc/nginx/sites.d/
97106

98107
/etc/logrotate.d/nginx:
99108
file.managed:

0 commit comments

Comments
 (0)
0