2021-01-22 22:21:42 +00:00
|
|
|
server {
|
2021-01-22 23:15:42 +00:00
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
2021-01-22 22:21:42 +00:00
|
|
|
|
2021-01-22 23:10:53 +00:00
|
|
|
root /var/www/html;
|
|
|
|
index index.html;
|
2021-01-22 22:21:42 +00:00
|
|
|
|
2021-01-22 23:10:53 +00:00
|
|
|
server_name my.domain.com;
|
2021-01-22 22:21:42 +00:00
|
|
|
|
2021-01-22 23:10:53 +00:00
|
|
|
ssl_certificate /etc/letsencrypt/live/my.domain.com/fullchain.pem;
|
2021-01-22 22:21:42 +00:00
|
|
|
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;
|
|
|
|
|
2021-01-22 23:10:53 +00:00
|
|
|
sendfile on;
|
|
|
|
send_timeout 600s;
|
2021-01-22 22:21:42 +00:00
|
|
|
|
2021-01-22 23:10:53 +00:00
|
|
|
location / {
|
|
|
|
proxy_pass http://192.168.2.1/;
|
2021-01-22 23:31:55 +00:00
|
|
|
include /etc/nginx/snippets/proxy_options.conf;
|
2021-01-22 23:10:53 +00:00
|
|
|
}
|
2021-01-22 22:21:42 +00:00
|
|
|
}
|