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;
}
}
Don't understand how to enable my domain with Nginx when Squarspace is providing SSL
in Squarespace products
Posted
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; } }