Reply -
Raw
server {
listen 80;
listen [::]:80;
listen [::]:443 ssl;
listen 443 ssl;
server_name example.com;
# Maximum file upload size is 4MB - change accordingly if needed
client_max_body_size 4M;
client_body_buffer_size 128k;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
ssl_prefer_server_ciphers on;
ssl_dhparam /etc/nginx/ssl/dhparam.pem;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
root /srv/http/example.com;
index index.html;
location / {
autoindex on;
}
location /grafana/ {
proxy_pass http://localhost:3000/;
}
location /influxdb/ {
proxy_pass http://localhost:8086/;
}
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}