- Aug 17, 2024
-
-
Kristian Klausen authored
F5/nginx has blogged about this[1] and it is also mentioned in nginx's documentation[2]: "There could be several add_header directives. These directives are inherited from the previous configuration level if and only if there are no add_header directives defined on the current level. " The problem occurs when add_header is used in a child context like a server{} or location{} block. It is solved by moving the HSTS header into a snippet, which is now included before all add_header lines. For now the HSTS header is the only global header, but in the future we may need to add more global headers, like the Alt-Svc header[3] for HTTP/3. [1] https://www.f5.com/company/blog/nginx/avoiding-top-10-nginx-configuration-mistakes#directive-inheritance [2] https://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header [3] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Svc Fix #608
-
- Jul 31, 2024
-
-
Kristian Klausen authored
This will be used for installing the geoip2 module, so we can make it more difficult for Chinese bots to crawl the wiki. The name of the shared object file can be overridden in case it is not named ngx_http_{{ module.name }}_module.so, e.g. srcache where the shared object is named ngx_http_srcache_filter_module.so.
-
- Jul 21, 2024
-
-
Jan Alexander Steffens (heftig) authored
This is required of OCSP stapling to work, or you get warnings when NGINX starts up: no resolver defined to resolve e6.o.lencr.org while requesting certificate status Let NGINX use the local systemd-resolved as its resolver. Fixes: #607
-
- Jul 20, 2024
-
-
Jan Alexander Steffens (heftig) authored
This reduces the session cache size and adds the `DHE-RSA-CHACHA20-POLY1305` cipher.
-
- Aug 29, 2022
-
-
Evangelos Foutras authored
Fixes: 26f289b7 ("Capitalize the first letter of all task names")
-
- Aug 23, 2022
-
-
Evangelos Foutras authored
ansible-lint 6.5.0 complains about: name: All names should start with an uppercase letter. (name[casing])
-
- Jun 08, 2022
-
-
Evangelos Foutras authored
These are used to signal the start of the document in a stream of many documents. As Ansible only supports one YAML document per file this is unnecessary. About a third of our YAML documents already lacked these.
-
- May 14, 2022
-
-
Kristian Klausen authored
We want to migrate to mailman3 as mailman2 is basically unmaintained and requires Python 2 which is EOL. Because the mailman and mailman3 packages conflict and we don't want to perform a big bang migration, mailman3 must be deployed on a separate server. mailman-web (mailman3's web interface) hasn't been packaged yet, so for now we are using my homebrewed PKGBUILD[1]. [1] https://gist.github.com/klausenbusk/5982063f95c503754a51ed2fefb8915e Ref #59
-
- Apr 18, 2022
-
-
Evangelos Foutras authored
This brings it in line with the non-JSON "reduced" log format.
-
- Oct 03, 2021
-
-
- Jun 16, 2021
-
-
Kristian Klausen authored
To be used as we begin migrating Flyspray tasks to GitLab. Fix #320
-
- May 03, 2021
-
-
Closes #317.
-
- Apr 08, 2021
-
-
A extra access_log entry was added with the following commands: $ cd roles $ grep -lr access_log | xargs -P 1 -n 1 sed -i '/access_log/ s/\(.*\)\( \)\(\(reduced\|main\);$\)/\1 \3\n\1.json json_\3/'
-
- Oct 22, 2020
-
-
- Sep 23, 2020
-
-
Sven-Hendrik Haase authored
-
- Sep 05, 2020
-
-
Jakub Klinkovský authored
-
Jakub Klinkovský authored
This is much cleaner because the nginx role does not have to set the fastcgi_cache variable to "false" by default, which was overridden by host_vars/apollo.archlinux.org to "wiki", but the value was still hardcoded in the config. At first, I was wondering that the cache "zone" name should be generalized to improve the configuration (from the original per-host to per-service), but that would be an overkill since the fastcgi cache is used only for the wiki...
-
- Jun 17, 2020
-
-
also use systemd instead of service module
-
- Jun 12, 2020
-
-
Frederik Schwan authored
-
- Oct 13, 2019
-
-
Sven-Hendrik Haase authored
This allows you to add snippets for toplevel nginx configuration directives that can't go into the http level. Use this for loading modules and such.
-
- Sep 05, 2019
-
-
Jan Alexander Steffens (heftig) authored
Enables TLS 1.3.
-
Jan Alexander Steffens (heftig) authored
-
Jan Alexander Steffens (heftig) authored
-
- Sep 01, 2019
-
-
Jelle van der Waa authored
These are static requests for JS/CSS assets which are the topmost request for the wiki. Caching these in nginx helps a lot to turn down the load.
-
- May 14, 2019
-
-
Florian Pritz authored
service Some machines use certbot, but don't have nginx so we shouldn't force the reload here. Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
- Mar 24, 2019
-
-
Florian Pritz authored
Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
- Feb 16, 2019
-
-
Florian Pritz authored
This is changed globally because it is probably fine for other services too. Some AUR RPC requests apparently manage to hit the 4k default limit and if they do, they get an empty response. This is an easier fix to the problam than changing the maximum request length in each AUR helper. Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
- Nov 18, 2018
-
-
Florian Pritz authored
This is mostly to resolve issues on luna where nginx is hitting the limit, but the higher limit won't hurt other machines so I'm not putting it in a variable for now. Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
- Nov 08, 2018
-
-
Florian Pritz authored
Running it too close to 00:00 UTC just leads to errors all the time. Running it at other times work fine so let's randomize things. Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
- Aug 17, 2018
-
-
Phillip Smith (fukawi2) authored
-
Phillip Smith (fukawi2) authored
-
- Aug 15, 2018
-
-
Phillip Smith (fukawi2) authored
-
- Aug 14, 2018
-
-
Phillip Smith (fukawi2) authored
-
- Jun 25, 2018
-
-
Florian Pritz authored
The discovery script now uses a regex and no longer cares where exactly accounting is enabled. Follow systemd upstream by enabling it by default. Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
- May 30, 2018
-
-
Florian Pritz authored
Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
Florian Pritz authored
For proxy/fastcgi/uwsgi blocks, logging is still set to the old format, but for everything else (= static data) a reduced format is used that excludes items that no longer make sense (request_time, remote_user) and those that are personal information all the time (remote_addr, http_x_forwarded_for). Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
- Apr 23, 2018
-
-
Jelle van der Waa authored
Chrome reports that our JavaScript is not compressed with gzip/brotli, this is due to chrome receiving javascript as application type: application/javascript.
-
- Mar 21, 2018
-
-
Florian Pritz authored
Disable firewall because python2 module is not avaible and the tasks fail which makes the playbooks fail and leads to handlers not being run. https://github.com/ansible/ansible/issues/24855 Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
- Mar 05, 2018
-
-
Phillip Smith (fukawi2) authored
-
- Feb 28, 2018
-
-
Florian Pritz authored
Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-