nginx_config/sites-available/default

25 lines
527 B
Plaintext

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
root /var/www/html;
index index.html;
server_name my.domain.com;
ssl_certificate /etc/letsencrypt/live/my.domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/my.domain.com/privkey.pem;
include /etc/nginx/snippets/ssl_options.conf;
client_max_body_size 5M;
client_body_buffer_size 256K;
sendfile on;
send_timeout 600s;
location / {
proxy_pass http://192.168.2.1/;
include /etc/nginx/snippets/proxy_options.conf;
}
}