Jump to content

Don't understand how to enable my domain with Nginx when Squarspace is providing SSL

Recommended Posts

I am using nginx to host my web site. I bought a squarespace domain and squarespace is handling the ssl. How do I setup my nginx server so that ssl works? This is my current nginx.conf file.

server {
    listen      80;
    listen      443;
    server_name  rustyindie.com 192.168.0.124; # Change to your domain name

    index index.html;
    
    root /usr/local/bin/rustyindie-web/dist; # Change to your static file directory

    # autoindex on; # Enable directory listing
    # ssl_certificate /etc/nginx/ssl/nginx.crt;
    # ssl_certificate_key /etc/nginx/ssl/nginx.key;

    location / {
        try_files $uri $uri/ /index.html =404;
    }
}

server {
    listen       3001;
    server_name  192.168.0.124; # Change to your domain name

    index index.html;
    
    root /usr/local/bin/rustyindie-admin/dist; # Change to your static file directory

    location / {
        try_files $uri $uri/ /index.html =404;
    }
}

 

Link to comment
  • Replies 0
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.