Page MenuHomeDevCentral

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

Authored by dereckson on Sep 18 2024, 22:11.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 17:43
Unknown Object (File)
Fri, Nov 22, 14:06
Unknown Object (File)
Fri, Nov 22, 12:01
Unknown Object (File)
Tue, Nov 19, 14:27
Unknown Object (File)
Tue, Nov 19, 06:38
Unknown Object (File)
Thu, Nov 14, 04:44
Unknown Object (File)
Sat, Nov 9, 17:03
Unknown Object (File)
Mon, Oct 28, 13:00
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
windriver
Build Status
Buildable 5498
Build 5779: 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.