this is my nginx ds.conf i get port issues because ports are already is use and nginx does not start.. what to do so that i can access this server from anywhere to be used in my projects
Redirect HTTP (port 80) to HTTPS
server {
listen 80;
server_name cora.us.com;
return 301 https://$host:8443$request_uri;
}
Main HTTPS server
server {
listen 443 ssl;
server_name cora.us.com;
ssl_certificate "C:/Program Files/ONLYOFFICE/DocumentServer/nginx/certs/cora.us.com.crt.pem";
ssl_certificate_key "C:/Program Files/ONLYOFFICE/DocumentServer/nginx/certs/cora.us.com.key.pem";
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://127.0.0.1:8085;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}