Page MenuHomeDevCentral

Serve devserver home directories from /var/home-wwwroot
Needs ReviewPublic

Authored by dereckson on Wed, Sep 18, 22:11.
Tags
None
Referenced Files
F3586504: D3454.id8907.diff
Thu, Sep 19, 08:54
F3586054: D3454.id.diff
Thu, Sep 19, 04:11
F3585999: D3454.diff
Thu, Sep 19, 03:26
F3585949: D3454.id8906.diff
Thu, Sep 19, 02:44
Subscribers
None

Details

Reviewers
dereckson
Summary

Users can host static files under server domain ~username directory,
for example https://windriver.nasqueron.org/~dereckson/

There is no CGI support, as we use nginx, not Apache or lighttpd.

Directories are stored in a location outside the home directory.
That allows users concerned by privacy to protect the home directory
with chmod 700 while the public_html directory can still be read.

The default nginx configuration takes care of the whole domain,
home directories and other services.

The node.get_all_ips function lists the unique addresses currently
assigend to the network interfaces, both IPv4 and IPv6. This is leveraged
to build the list of the addresses matching the server for nginx.

Services for the devserver include Poudriere logs.

API CORS is for the Salt server config read by infra.nasqueron.org.

Test Plan

Tested on WindRiver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
SeverityLocationCodeMessage
Error_modules/node.py:477E501flake8 E501
Unit
No Test Coverage
Branch
windriver
Build Status
Buildable 5498
Build 5779: arc lint + arc unit