Skip to content

speedtest v2 - #411

Merged
AlexanderMalmstrom merged 37 commits into
productionfrom
thenewnewspeedtest
Jul 28, 2026
Merged

speedtest v2#411
AlexanderMalmstrom merged 37 commits into
productionfrom
thenewnewspeedtest

Conversation

@SoundGoof

Copy link
Copy Markdown
Member

No description provided.

@AlexanderMalmstrom AlexanderMalmstrom changed the title WIP: speedtest v2 speedtest v2 Mar 1, 2026
@AlexanderMalmstrom

Copy link
Copy Markdown
Contributor

This PR should now be ready to merge.

Comment thread modules/speedtestv2/manifests/init.pp Outdated
AlexanderMalmstrom and others added 4 commits July 27, 2026 03:09
Removed apt-update part since puppet should handle that.
Fixed linting issue
Derive the served hostname from the node's FQDN instead of hardcoding
speedtest2.event.dreamhack.se. This turns speedtest.conf into an ERB
template so server_name and the certificate paths all render from @fqdn,
matching how the apache and inspircd modules already do it.

Certificates are issued on the puppetmaster and only copied down, so the
cert resources now notify the nginx service - without that a renewed cert
sits on disk while nginx keeps serving the old one. They also require
Package['ssl-cert'], which owns the ssl-cert group they set as their
group, and would otherwise fail on a freshly provisioned node.

TLS config drops TLSv1/TLSv1.1 and the "ALL" cipher list in favour of
nginx defaults, error logging is restored (access logging stays off on
purpose, it skews the measurement), and the CORS headers are gone since
the test is served directly rather than embedded from another origin.

The web root is now purged so stale assets and nginx's own default files
are cleaned up, and its mode drops to 0644 so the static assets are not
world-executable; Puppet restores the execute bit on directories itself.

Also removes hosted.html, which embedded an iframe from openspeedtest.com,
and the .well-known/acme-challenge block, which pointed at the wrong root
and could never have served a challenge from this host.

@AlexanderMalmstrom AlexanderMalmstrom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlexanderMalmstrom
AlexanderMalmstrom merged commit c1bdee4 into production Jul 28, 2026
1 check passed
@AlexanderMalmstrom
AlexanderMalmstrom deleted the thenewnewspeedtest branch July 28, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants