I want to add this extra config to my nginx.conf:
server {
listen 0.0.0.0:8081;
rewrite ^ https://$host$request_uri? redirect;
}
But as my app is deployed in a hosting service I don't want to modify the already present nginx.conf
. It can be problematic.
Is there any way I can add this extra configuration without modifying nginx.conf?