Hi, I’m having problems installing ssl certificate on my digitalocean vps running grav. I assume I have to add the ssl to my grav server block (not default). So, I think my issue is /etc/nginx/sites-available/grav. Below my /etc/nginx/sites-available/grav where my domain replaced by example:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name example.com www.example.com;
return 301 https://$server_name$request_uri;
}
server {
# SSL configuration
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
include snippets/ssl-example.com.conf;
include snippets/ssl-params.conf;
## Begin - Index
# for subfolders, simply adjust the rewrite:
# to use `/subfolder/index.php`
....
running “sudo ngix -t” test results in error from duplicate ssl_certificate if I add those two lines in. The same directive comes from the snippets/ssl-example.com.conf… hmm