#SSL w/ docker, Nginx, directus

2 messages · Page 1 of 1 (latest)

latent lilyBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

covert forum
#

nginx.conf:

server {
    listen 80;
    listen [::]:80;

    server_name ex.com www.ex.com;
    server_tokens off;

    location /.well-known/acme-challenge/ {
        root /var/www/certbot;
    }

     location / {
        return 301 https://ex.com$request_uri;
    }

}

server {
    listen 443 default_server ssl http2;
    listen [::]:443 ssl http2;

    server_name ex.com;

    ssl_certificate /etc/letsencrypt/live/ex.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/ex.com/privkey.pem;

   location / {
    proxy_pass  https://directus:8055;
   }

}