Page MenuHomeDevCentral

Consolidate nginx configuration into webserver-core role
ClosedPublic

Authored by dereckson on Apr 11 2023, 18:46.
Tags
None
Referenced Files
F34968962: D2999.diff
Sat, Jul 4, 14:43
F34943511: D2999.id7659.diff
Sat, Jul 4, 05:13
F34941388: D2999.id7722.diff
Sat, Jul 4, 04:45
F34931149: D2999.id7721.diff
Sat, Jul 4, 02:25
F34913728: D2999.id7664.diff
Fri, Jul 3, 22:43
F34900219: D2999.id.diff
Fri, Jul 3, 19:36
F34899464: D2999.id7657.diff
Fri, Jul 3, 19:08
Unknown Object (File)
Fri, Jul 3, 15:33
Subscribers
None

Details

Summary

Several roles configures nginx:

  • paas-docker
  • shellserver (Eglide)
  • webserver-legacy

Currently, each of them defines its own nginx configuration.

This change allows to configure nginx in two layers:

  • a common one in webserver-core role
  • specific vhosts and includes in the specific role

Ref T1828

Test Plan

Deploy on Eglide, Dwellers, Ysul then web-001

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
nginx-sync-config
Build Status
Buildable 4747
Build 5028: arc lint + arc unit

Event Timeline

dereckson created this revision.

Don't commit ocsp-ca-certs.pem, fix spaces

Fixes after testing on Dwellers / docker-002 / Ysul

Keep it simple: just run as www on FreeBSD, this web group is only defined in webserver_legacy and not in use in wwwroot (/var/wwwrot or /var/51-wwwroot) currently.

Let specific role create vhost folder

This revision is now accepted and ready to land.Apr 15 2023, 19:50