Compose files, instructions and extras for using my automatic proxy containers
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

default-server.conf 725B

123456789101112131415161718192021222324
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4. server_name _;
  5. # From: https://community.letsencrypt.org/t/how-to-nginx-configuration-to-enable-acme-challenge-support-on-all-http-virtual-hosts/5622
  6. location ^~ /.well-known/acme-challenge/ {
  7. default_type "text/plain";
  8. alias /letsencrypt/well-known/;
  9. }
  10. # Hide /acme-challenge subdirectory and return 404 on all requests.
  11. # It is somewhat more secure than letting Nginx return 403.
  12. # Ending slash is important!
  13. location = /.well-known/acme-challenge/ {
  14. return 404;
  15. }
  16. # Redirects all default HTTP traffic to HTTPS.
  17. location / {
  18. return 301 https://$host$request_uri;
  19. }
  20. }