瀏覽代碼
[users.sls] touch /etc/nginx/.htpasswd
tags/v0.55.0
Arthur Lutz
7 年之前
No account linked to committer's email address
共有
1 個文件被更改,包括
4 次插入 和
0 次删除
-
nginx/users.sls
|
|
@@ -5,6 +5,10 @@ htpasswd: |
|
|
|
pkg.installed: |
|
|
|
- name: {{ nginx.apache_utils }} |
|
|
|
|
|
|
|
touch /etc/nginx/.htpasswd: |
|
|
|
cmd.run: |
|
|
|
- creates: /etc/nginx/.htpasswd |
|
|
|
|
|
|
|
make sure {{ htauth }} exists: |
|
|
|
file.exists: |
|
|
|
- name: {{ htauth }} |