Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
c96e8b91
Unverified
Commit
c96e8b91
authored
Sep 02, 2020
by
Jakub Klinkovský
Browse files
nginx: move fastcgi cache to /var/lib/nginx
parent
24091c52
Changes
2
Hide whitespace changes
Inline
Side-by-side
roles/archwiki/tasks/main.yml
View file @
c96e8b91
...
...
@@ -30,6 +30,9 @@
when
:
maintenance is not defined
tags
:
[
'
nginx'
]
-
name
:
remove old fastcgi cache directory
file
:
path=/etc/nginx/wikicache state=absent
-
name
:
configure robots.txt
copy
:
src=robots.txt dest="{{ archwiki_dir }}/robots.txt" owner=root group=root mode=0644
...
...
roles/archwiki/templates/nginx.d.conf.j2
View file @
c96e8b91
fastcgi_cache_path /
etc
/nginx/
wiki
cache levels=1:2 keys_zone=wiki:100m inactive=60m;
fastcgi_cache_path /
var/lib
/nginx/cache levels=1:2 keys_zone=wiki:100m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
upstream archwiki {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment