Compose files, instructions and extras for using my automatic proxy containers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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