Ctrl K
ComunidadGuías…

nginx.conf.example

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
# Include this file inside Nginx's http block (for example, sites-enabled on Debian).
# Replace drops.example.com with your hostname. Obtain the certificate first.
# Set PUBLIC_BASE_URL=https://drops.example.com on the miner.

map $http_upgrade $tdm_connection_upgrade {
    default upgrade;
    '' close;
}

server {
    listen 80;
    server_name drops.example.com;

    location ^~ /.well-known/acme-challenge/ {
        root /var/lib/letsencrypt;
        try_files $uri =404;
    }

    location / {
        return 308 https://drops.example.com$request_uri;
    }
}

server {
    listen 443 ssl;
    server_name drops.example.com;
    ssl_certificate /etc/letsencrypt/live/drops.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/drops.example.com/privkey.pem;
    ssl_protocols TLSv1.2 TLSv1.3;

    client_max_body_size 1m;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_http_version 1.1;
        proxy_set_header Host $http_host;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $tdm_connection_upgrade;
        proxy_read_timeout 75s;
        proxy_buffering off;
    }
}