Page MenuHomeDevCentral

Serve devserver home directories from /var/home-wwwroot
ClosedPublic

Authored by dereckson on Sep 18 2024, 22:11.
Tags
None
Referenced Files
F3728818: D3454.diff
Sat, Nov 9, 17:03
Unknown Object (File)
Mon, Oct 28, 13:00
Unknown Object (File)
Fri, Oct 25, 16:30
Unknown Object (File)
Fri, Oct 25, 13:06
Unknown Object (File)
Thu, Oct 24, 02:28
Unknown Object (File)
Wed, Oct 23, 20:53
Unknown Object (File)
Mon, Oct 21, 17:52
Unknown Object (File)
Mon, Oct 21, 14:23
Subscribers
None

Details

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
home-wwwroot
Build Status
Buildable 5497
Build 5778: arc lint + arc unit

Event Timeline

dereckson created this revision.

Insecable spaces, protect IPs list

This revision is now accepted and ready to land.Sep 25 2024, 18:55
This revision was landed with ongoing or failed builds.Sep 25 2024, 18:56
This revision was automatically updated to reflect the committed changes.