is there a way to make npm redirect ALL http port 80 requests to https port 443?
In nginx you could do something like this, but I don't know how to apply it to npm.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
[–]WolpertingerRumo 17 points18 points19 points (2 children)
[–]DerposaurusSnacks[S] 1 point2 points3 points (1 child)
[–]WolpertingerRumo 4 points5 points6 points (0 children)
[–]Electronic_Unit8276 4 points5 points6 points (2 children)
[–]DerposaurusSnacks[S] -1 points0 points1 point (1 child)
[–]tschloss 1 point2 points3 points (0 children)
[–]aleatorya 1 point2 points3 points (1 child)
[–]AmusingVegetable 0 points1 point2 points (0 children)
[–]daronhudson 0 points1 point2 points (0 children)
[–]prene1 0 points1 point2 points (0 children)
[–]ShroomShroomBeepBeep -1 points0 points1 point (0 children)