Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[WIP] Move home directory check to PUN #7
Now if the user's home directory does not exist, an error page
this error page will provide directions to attempt to ssh to the default
it will also provide a link to restart the app
So this doesn't provide the ability to customize the template. The problem is that the error page is mostly relevant only for sites that generate home directories using pam_mkhomedir.so.
A quick hack to do that is in this PR: #8
Another solution would be to have a simple Passenger app (that is not in Ruby) that displays the desired look and feel and then there are lots of options for configuration.
I propose we do not do this: #8
Rather, we should encourage and enable setting these env vars in the PUN:
Then we can update the error pages in nginx_stage to have the same banner at the top, using the same brand.
Also, we should probably provide a custom app to serve these error pages and use NGINX's internal redirects to serve responses. This custom app could be in node.js, since launching Ruby is problematic with rubygems that is not 3.0.0.
These things will be easier to implement with a monorepo.
To clarify, instead of #8 we would:
And even without a monorepo, we could do this today by adding an empty apps directory to this repo and adding a new error handling app to this directory.