- Dec 23, 2024
-
-
- Dec 22, 2024
-
-
Kristian Klausen authored
This enables us to calculate the cache hit ratio, which may help determine whether more caching would be beneficial. Please note that this only counts requests for which caching is enabled (e.g. {fastcgi,proxy}_cache is configured), e.g. for static served files cache_status will be "". [1] http://nginx.org/en/docs/http/ngx_http_upstream_module.html#var_upstream_cache_status
-
Kristian Klausen authored
Mainly because we are curious. The data may also be used to decide if we want to drop older versions of TLS.
-
- Aug 18, 2024
-
-
Kristian Klausen authored
Fixes: 8dfa7e8c ("nginx: Add plumbing for enabling HTTP/3 conditionally")
-
- Aug 17, 2024
-
-
Kristian Klausen authored
We want to roll out HTTP/3 slowly, so this adds the necessary plumbing and makes it possible to enable it per host. Instead of adding the conditional logic to each nginx template, the 443 listen config is moved out into a snippet which is managed by the nginx role. HTTP/3 uses QUIC which is built on UDP. UDP is connectionless and therefore reuseport[1][2] must be used to ensure that UDP packets for the same QUIC connection is directed to the same worker. reuseport can only be enabled once, so a default_server is added to the "inventory_hostname vhost" for SSL/QUIC (reuseport is only enabled for the latter). ssl_reject_handshake[3] is enabled as that allows enabling SSL/QUIC without specifying a certificate. [1] https://nginx.org/en/docs/http/ngx_http_core_module.html#listen [2] https://lwn.net/Articles/542629/ [3] http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_reject_handshake Ref #606
-
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>
-