digitalocean / nginxconfig.io

⚙️ NGINX config generator on steroids 💉
https://do.co/nginxconfig
MIT License
27.42k stars 2.01k forks source link

Unable to redirect http to https . Can anyone help here ? #428

Closed kaniket7209 closed 1 year ago

kaniket7209 commented 1 year ago

server { listen 80; server_name websocket.appeq.io; return 301 https://websocket.appeq.io$request_uri; } server{ listen 443 ; server_name websocket.appeq.io;

location /.well-known/acme-challenge/ {
    # HTTP-01 challenge

proxy_pass http://127.0.0.1:3050; }

location / {
    proxy_pass http://127.0.0.1:3050;
    # Your web application
} 

}

MattIPv4 commented 1 year ago

👋 GitHub issues are meant to track bugs and feature requests with the NGINXConfig tool, not general support with NGINX configurations. I recommend posting on DigitalOcean's Q&A site if you need help: https://do.co/questions