Compose files, instructions and extras for using my automatic proxy containers
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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. }