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:
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;
}
}
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
default etc/skel to provide
http://<user>.<server>.hashbang.shfrom~user/.nginx.sockoptional etc/skel to provide https service
https://<user>.<server>.hashbang.shfrom~user/.nginx.https.sockcustom domains
/var/run/nginx/<domain>.http.sock/var/run/nginx/<domain>.https.sockThe global nginx server config looks like this (the ssl part)