Commit Graph

31 Commits

Author SHA1 Message Date
hikari f433f3330a feat: add elysium.nhcarrigan.com nginx config
Test nginx configuration / Static Analysis (pull_request) Successful in 5s
Test nginx configuration / nginx Syntax Check (pull_request) Successful in 17s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m10s
 This issue was created with help from Hikari~ 🌸
2026-03-07 02:01:39 -08:00
hikari fbdc386449 fix: replace absolute default symlink with relative path
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 2m11s
Test nginx configuration / Static Analysis (pull_request) Successful in 8s
Test nginx configuration / nginx Syntax Check (pull_request) Successful in 27s
2026-03-03 16:34:47 -08:00
hikari e8318215a9 docs: add README and per-file header comments
Test nginx configuration / Static Analysis (pull_request) Failing after 4s
Test nginx configuration / nginx Syntax Check (pull_request) Successful in 16s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m21s
- Rewrote README with full directory structure, add/remove site
  workflows, deploy instructions, and a test suite reference table
- Added a one-line header comment to each sites-available/*.conf
  explaining what category of sites belongs in that file
2026-03-03 16:26:37 -08:00
hikari 12687ad1a2 feat: add style.nhcarrigan.com to content sites
Test nginx configuration / Static Analysis (pull_request) Failing after 9s
Test nginx configuration / nginx Syntax Check (pull_request) Successful in 24s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m28s
2026-03-03 16:17:53 -08:00
hikari 7085845234 feat: enforce alphabetical server block ordering
Test nginx configuration / Static Analysis (pull_request) Failing after 6s
Test nginx configuration / nginx Syntax Check (pull_request) Successful in 24s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m59s
Adds test 13 to test.sh to verify that server blocks within each
sites-available file are sorted alphabetically by server_name
(LC_ALL=C; regex and wildcard entries excluded).

Fixes aria.conf and mommy.conf to conform: hyphenated names sort
before the bare domain in C locale ('-' < '.'), so trans-bot now
precedes trans, and mommy-slack now precedes mommy.
2026-03-03 16:16:18 -08:00
hikari 493d758df8 refactor: remove port 80 listeners and enforce HTTPS-only in tests
Test nginx configuration / Static Analysis (pull_request) Failing after 5s
Test nginx configuration / nginx Syntax Check (pull_request) Successful in 16s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m6s
Removes the listen 80 / listen [::]:80 blocks from cdn.conf since
port 80 is blocked at the firewall. Updates test 6 to enforce that
no custom server block listens on port 80 at all.
2026-03-03 16:10:51 -08:00
hikari 55fcab69a1 feat: add comprehensive nginx config test suite
Test nginx configuration / Static Analysis (pull_request) Failing after 4s
Test nginx configuration / nginx Syntax Check (pull_request) Successful in 22s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m28s
Replaces the obsolete test.sh (which referenced configs/prod.conf,
a file that no longer exists) with 12 static-analysis checks:

  1.  No deprecated TLS versions (TLSv1 / TLSv1.1)
  2.  No duplicate literal server_name values
  3.  Every sites-available conf has a sites-enabled symlink
  4.  No broken symlinks in sites-enabled
  5.  No orphaned sites-enabled symlinks
  6.  No HTTP-only server blocks (port 80 without port 443)
  7.  ssl_certificate / ssl_certificate_key counts match per file
  8.  Plain-HTTP proxy_pass targets are local only
  9.  All SSL cert paths use /etc/letsencrypt/live/
  10. ssl_certificate uses fullchain.pem, key uses privkey.pem
  11. No raw IP addresses as server_name
  12. conf.d contains only expected files

Adds .gitea/workflows/test.yml with two CI jobs: static-analysis
(runs test.sh, no nginx required) and syntax-check (installs
nginx-full, copies config, generates stub SSL certs for all
referenced letsencrypt paths, then runs nginx -t).
2026-03-03 16:06:18 -08:00
hikari aff5a966c6 chore: remove unused default files and clean up comments
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 58s
Deletes conf.d/default.conf, snippets/snakeoil.conf, and
snippets/fastcgi-php.conf (all stock example files not used in
production). Strips all commented-out lines and the mail block from
nginx.conf, and drops TLSv1/TLSv1.1 from ssl_protocols. Cleans
sites-available/default down to just the functional catch-all.
2026-03-03 16:04:01 -08:00
hikari 37402ce0f4 refactor: extract custom nginx.conf settings into conf.d files
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m6s
Moves custom log formats to conf.d/logging.conf and the
server_names_hash_bucket_size tweak to conf.d/tuning.conf,
leaving nginx.conf as close to stock as possible.
2026-03-03 15:45:16 -08:00
hikari 222e0f5a41 refactor: split monolithic server.conf into per-app config files
Moves all server blocks out of conf.d/server.conf into individual
files under sites-available/, grouped by logical application. Each
file is symlinked into sites-enabled/ to enable it. The old
server.conf is removed.
2026-03-03 15:38:48 -08:00
hikari 98ecac463e feat: add --delete flag to push.sh for exact mirroring 2026-03-03 15:22:53 -08:00
hikari 611967fa30 feat: add push.sh script to deploy nginx config to prod 2026-03-03 15:19:44 -08:00
naomi 243f2d4a18 feat: new structure 2026-03-03 15:15:37 -08:00
hikari d06178c01b docs: update feedback section to use support forum
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m43s
2026-01-26 12:36:53 -08:00
naomi 5cbd39ed52 feat: automated upload of .gitea/workflows/security.yml
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m1s
2025-12-18 03:08:02 +01:00
naomi e4455ab5ad feat: automated upload of .gitea/workflows/security.yml
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 58s
2025-12-17 23:26:02 +01:00
naomi 1e40524bee feat: automated upload of .gitea/workflows/security.yml
Security Scan / Security Audit (push) Failing after 6m58s
2025-12-12 03:37:48 +01:00
naomi 4b68a2d320 feat: automated upload of .gitea/workflows/security.yml
Security Scan / Trivy Security Scan (push) Failing after 4m47s
2025-12-11 20:11:59 +01:00
naomi fbc9e4c063 chore: sync configs 2025-07-15 21:22:34 -07:00
naomi b746c457ce feat: time for another sync got some cool stuff in here 2025-07-03 20:29:28 -07:00
naomi 591fc61a10 feat: add elowyn 2025-05-25 14:17:40 -07:00
naomi 7c098d41c7 feat: actually sort, add test for sorting 2025-05-25 13:50:18 -07:00
naomi 4956e1b8b1 feat: alphabetise 2025-05-25 13:42:17 -07:00
naomi c557475f11 feat: update config 2025-05-25 13:38:05 -07:00
naomi 122a0eec92 chore: sync configs 2025-03-31 09:32:56 -07:00
naomi 6e74cd017f feat: sync configs 2025-03-24 15:26:26 -07:00
naomi 10e4a5c36f feat: mommy 2025-03-07 11:15:07 -08:00
naomi dddc247701 feat: clean up config, alphabetise prod 2025-02-26 16:09:13 -08:00
naomi 78c0210284 chore: update configs 2025-02-13 17:50:10 -08:00
naomi 600cc2b8e3 feat: backup configs 2025-01-28 17:52:58 -08:00
nhcarrigan 5e5cce5470 Initial commit 2025-01-28 17:31:06 -08:00