Verified Commit 0d12e729 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/aurweb: Switch to using a socket for memcached

For security reasons, switch to using a socket for memcached on aurweb.
parent 32589f46
......@@ -24,5 +24,5 @@ aurweb_cache: 'memcache'
aurweb_cache_pkginfo_ttl: '86400'
aurweb_request_limt: '4000'
aurweb_window_length: '86400'
aurweb_memcached_host: 'localhost'
aurweb_memcached_socket: '/run/memcached/aurweb.sock'
aurweb_memcached_memory: 2048
\ No newline at end of file
......@@ -5,7 +5,7 @@ After=network.target
[Service]
User={{ aurweb_user }}
Group=memcached
ExecStart=/usr/bin/memcached -l {{ aurweb_memcached_host }} -m {{ aurweb_memcached_memory }} -o modern
ExecStart=/usr/bin/memcached -s {{ aurweb_memcached_socket }} -m {{ aurweb_memcached_memory }} -o modern
Restart=always
NoNewPrivileges=yes
PrivateTmp=yes
......
......@@ -15,6 +15,7 @@ cache = {{ aurweb_cache }}
cache_pkginfo_ttl = {{ aurweb_cache_pkginfo_ttl }}
git_clone_uri_anon = https://{{ aurweb_domain }}/%s.git
git_clone_uri_priv = ssh://{{ aurweb_user }}@{{ aurweb_domain }}/%s.git
memcache_servers = {{ aurweb_memcached_socket }}:0
[ratelimit]
request_limit = {{ aurweb_request_limt }}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment