1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
Commit Graph

40 Commits

Author SHA1 Message Date
Robin Candau
934db48d4a Rename systemd module to systemd_service
See https://github.com/ansible/ansible/pull/77644
2024-12-23 17:43:01 +00:00
Kristian Klausen
8dfa7e8c3e
nginx: Add plumbing for enabling HTTP/3 conditionally
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
2024-08-17 21:53:32 +02:00
Kristian Klausen
4f872bae8b
Fix missing HSTS header for some URLs due to nginx "directive inheritance"[1]
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
2024-08-17 18:58:51 +02:00
Robin Candau
7b14027a45 Switch to http2 directive in nginx configs
> 2024/06/02 11:05:53 \[warn\] 30324#30324: the "listen ... http2" directive is deprecated, use the "http2" directive instead

Fixes https://gitlab.archlinux.org/archlinux/infrastructure/-/issues/589
2024-06-02 12:25:27 +00:00
Christian Heusel
49cfeabf96
fluxbb: remove casing inconsistency in menu
Fixes: 98f209484f7f4b28eaafda3b973bd824f6b72236 ("fluxbb: update the navbar url from bugs to gitlab")
Signed-off-by: Christian Heusel <christian@heusel.eu>
2023-11-27 00:31:48 +01:00
Christian Heusel
2a989aafee fluxbb: update the navbar url from bugs to gitlab 2023-11-24 17:04:08 +00:00
Evangelos Foutras
66dc40c0fc
fluxbb: install git for cloning the archbbs repo 2022-12-30 11:43:10 +02:00
Evangelos Foutras
f9839273df
fluxbb: change Moscow time from UTC+4 to UTC+3
https://bugs.archlinux.org/task/71411
2022-12-30 11:39:40 +02:00
Evangelos Foutras
578b781966
Capitalize the handler name in handler invocations
Fixes: 26f289b72bfb ("Capitalize the first letter of all task names")
2022-08-29 21:46:39 +03:00
Evangelos Foutras
26f289b72b
Capitalize the first letter of all task names
ansible-lint 6.5.0 complains about:

  name: All names should start with an
        uppercase letter. (name[casing])
2022-08-23 06:57:13 +03:00
Evangelos Foutras
a9e0790f53
Remove the three dashes from all YAML documents
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.
2022-06-08 14:35:45 +03:00
Evangelos Foutras
5a88a31374
fluxbb: Speed up search and increase buffer pool 2021-08-19 03:48:53 +03:00
Evangelos Foutras
7b68eb3594
fluxbb: fix instability caused by slow searches 2021-08-16 00:22:42 +03:00
Jelle van der Waa
1ac022491a
Remove non-existant package from fluxbb role 2021-07-12 17:24:01 +02:00
Jelle van der Waa
73f0ca78dc
Add rate limit to fluxbb's php-fpm 2021-07-12 17:24:01 +02:00
Kristian Klausen
316b85170b Add missing "create ssl cert" tasks 2021-05-13 22:03:39 +00:00
Leonidas Spyropoulos
84d54195e4 Stop uncontrolled requests early.
Stop uncontrolled requests before reach php backend

Closes: #276

Signed-off-by: Leonidas Spyropoulos <artafinde@gmail.com>
2021-04-27 18:58:05 +00:00
Leonidas Spyropoulos
22cfac4420 Avoid needless regex on 301 rewrites
Closes: #278

Signed-off-by: Leonidas Spyropoulos <artafinde@gmail.com>
2021-04-12 20:03:24 +01:00
Jelle van der Waa
426a565256
Add promtail access log to fluxbb nginx config 2021-04-11 17:45:39 +02:00
Jelle van der Waa
d016500dce
Use mysqli_innodb as database type 2021-02-18 21:54:11 +01:00
Jelle van der Waa
afb21e11f1
Update www.archlinux.org links in fluxbb navbar 2021-02-18 21:54:11 +01:00
Jelle van der Waa
bb353e4257
Update bbs to PHP 8
Update fluxbb to the latest commit with PHP 8 compatibility, fix
permissions being to strict so http can't access it and rate limit
searching.
2021-02-18 21:54:11 +01:00
Kristian Klausen
4112bdf9fd Make ansible-lint happy
yaml: truthy value should be one of [false, true] (truthy)
yaml: wrong indentation: expected 4 but found 2 (indentation)
yaml: too few spaces before comment (comments)
yaml: missing starting space in comment (comments)
yaml: too many blank lines (1 > 0) (empty-lines)
yaml: too many spaces after colon (colons)
yaml: comment not indented like content (comments-indentation)
yaml: no new line character at the end of file (new-line-at-end-of-file)
load-failure: Failed to load or parse file
parser-error: couldn't resolve module/action 'hosts'. This often indicates a misspelling, missing collection, or incorrect module path.
2021-02-14 14:22:05 +01:00
Jakub Klinkovský
24091c52fb
nginx: use reload instead of restart when nginx configuration changes 2020-09-05 21:27:21 +02:00
Frederik Schwan
63887d3b09 fix E208 'File permissions not mentioned' 2020-08-27 05:29:00 +00:00
Jan Alexander Steffens (heftig)
be259e1a0f
fluxbb, flyspray: Deny access to /.git
The gitdirs are just clones of public repos and don't seem to contain
anything sensitive but better safe than sorry.

Thanks to Christian Rebischke <chris@shibumi.dev>
2020-02-28 01:05:36 +01:00
Jelle van der Waa
b83828c1e9 Add security tracker to the wiki navbar 2020-02-23 20:25:32 +01:00
Jelle van der Waa
86cd446a71 fluxbb: add missing uploads directory 2019-11-13 21:46:15 +01:00
Jelle van der Waa
f7bd911360 fluxbb: fix rate limitting for feeds
The location block should also execute PHP otherwise we will just reply
with PHP files.
2019-11-04 11:10:28 +01:00
Phillip Smith
4a382368b9 return 429 "too many requests" to clients exceeding rate-limits 2019-11-04 15:58:00 +11:00
Phillip Smith
ef61433a35 rate-limit requests for rss feed
someone has made a conky script that hits the rss feed every second, so nginx
now limits that to once per minute, returning 503 instead at other times. a
burst is also in place to prevent genuine users being blocked.
2019-11-04 14:05:01 +11:00
Phillip Smith
78e8325be4 add missing ipv6 listen directives to nginx config 2019-11-04 13:00:59 +11:00
Phillip Smith
ef4c4233e7 add missing listen directive for nginx ipv6 2019-11-04 11:18:37 +11:00
Jelle van der Waa
016aa54176 fluxbb: various changes
Fix installation of php deps, don't deploy git master and get the
fluxbb_cookie_seed from the ansible-vault
2019-10-27 21:10:40 +01:00
Jelle van der Waa
da16890e70 fluxbb: add apcu for bbs 2019-10-27 20:29:58 +01:00
Jelle van der Waa
208a13e5d4
Move fluxbb to a separate vps
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2019-10-27 18:24:24 +01:00
Jelle van der Waa
ea838ec9dd fluxbb: updates/renames for fluxbb 2019-10-17 22:07:46 +02:00
Jelle van der Waa
312161a067 Update to python 3 2019-10-17 22:07:46 +02:00
Bartłomiej Piotrowski
3435b2c034 fluxbb: Tweak php-fpm settings basing on luna 2019-10-17 22:07:46 +02:00
Bartłomiej Piotrowski
0a28c8b1ff fluxbb: Initial commit 2019-10-17 22:07:46 +02:00