-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
So, let's improve the nginx on shell server to next level!
Currently shell-server has a basic nginx service is nearly hard to use for new users.
So the plan is:
-
having a global nginx server listening on port 80 and 443
- use Let's Encrypt to obtain https certificates and auto-renew
-
default etc/skel to provide
- serve
http://<user>.<server>.hashbang.shfrom~user/.nginx.sock - systemd --user service and nginx config to start nginx serving Public done
- serve
-
optional etc/skel to provide https service
- serve
https://<user>.<server>.hashbang.shfrom~user/.nginx.https.sock - systemd --user service and nginx config to start nginx serving Public
- serve
-
custom domains
- forward custom domains to
-
/var/run/nginx/<domain>.http.sock -
/var/run/nginx/<domain>.https.sock
-
- forward custom domains to
The global nginx server config looks like this (the ssl part)
stream {
server {
listen 443;
proxy_protocol on;
proxy_pass unix:/var/run/nginx/$ssl_preread_server_name.https.sock;
ssl_preread on;
}
}
Metadata
Metadata
Assignees
Labels
No labels