blog.subdomain.conf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ## Version 2020/12/09
  2. # make sure that your dns has a cname set for ghost and that your ghost config is not using a subdirectory.
  3. server {
  4. listen 443 ssl;
  5. listen [::]:443 ssl;
  6. server_name blog.*;
  7. include /config/nginx/ssl.conf;
  8. client_max_body_size 0;
  9. #enable for ldap auth, fill in ldap details in ldap.conf
  10. #include /config/nginx/ldap.conf;
  11. # enable for Authelia
  12. #include /config/nginx/authelia-server.conf;
  13. location / {
  14. #enable the next two lines for http auth
  15. #auth_basic "Restricted";
  16. #auth_basic_user_file /config/nginx/.htpasswd;
  17. #enable the next two lines for ldap auth
  18. #auth_request /auth;
  19. #error_page 401 =200 /ldaplogin;
  20. # enable for Authelia
  21. #include /config/nginx/authelia-location.conf;
  22. include /config/nginx/proxy.conf;
  23. resolver 127.0.0.11 valid=30s;
  24. set $upstream_app ghost-ghost-1;
  25. set $upstream_port 2368;
  26. set $upstream_proto http;
  27. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  28. proxy_redirect off;
  29. }
  30. }