Serve Jenkins from paas-docker nginx
ClosedPublic

Authored by dereckson on Mar 12 2018, 00:25.

Details

Summary

Provision front-end nginx configuration to serve
the continuous deployment Jenkins server cd.nasqueron.org.

As it's the first commit to configure this nginx instance,
we take care of Let's encrypt and proxy configuration.

The specific proxy configuration is fairly standard,
but tweaked to ensure compatibility with Jenkins CLI
in HTTP connection mode.

The docker_containers pillar entry format is switched from a list
to a dictionary, to allow to store metadata like domain or port.

Area for improvement

Ideally, we should serve static files from nginx, but the container
doesn't contain a nginx instance and we don't have access to those
files.

References

Test Plan

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dereckson requested review of this revision.Mar 12 2018, 00:25
dereckson created this revision.
dereckson updated this revision to Diff 3650.Mar 16 2018, 01:48

Let's encrypt, nginx vhost provisionning, some tweaks to pillar

dereckson edited the summary of this revision. (Show Details)Mar 16 2018, 01:52
dereckson edited the test plan for this revision. (Show Details)
dereckson updated this revision to Diff 3651.Mar 16 2018, 02:05
dereckson edited the test plan for this revision. (Show Details)

Fix nginx config part

dereckson updated this revision to Diff 3654.Mar 16 2018, 02:24

Use includes/tls

dereckson updated this revision to Diff 3657.Mar 16 2018, 02:49

Update Let's encrypt path

dereckson updated this revision to Diff 3665.Mar 16 2018, 04:06

Configure proxy parameters

dereckson accepted this revision.Mar 16 2018, 04:14
dereckson edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Mar 16 2018, 04:14
This revision was automatically updated to reflect the committed changes.