63 lines
1.4 KiB
Plaintext
63 lines
1.4 KiB
Plaintext
upstream zot {
|
|
zone zot 1m;
|
|
server 127.0.0.1:8789;
|
|
keepalive 16;
|
|
}
|
|
|
|
limit_req_zone $binary_remote_addr zone=zot_limit:10m rate=50r/s;
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen 443 quic;
|
|
http2 on;
|
|
http3 on;
|
|
|
|
ssl_protocols TLSv1.3;
|
|
ssl_early_data on;
|
|
add_header Alt-Svc 'h3=":$server_port"; ma=10000';
|
|
server_name zot.linuxiarz.pl;
|
|
|
|
include config/wildcard.conf;
|
|
|
|
access_log /var/log/angie/zot.linuxiarz.pl.access.log;
|
|
error_log /var/log/angie/zot.linuxiarz.pl.error.log warn;
|
|
|
|
status_zone zot.linuxiarz.pl;
|
|
|
|
limit_req zone=zot_limit burst=100 nodelay;
|
|
|
|
location ~ ^/v2/ {
|
|
proxy_pass http://zot;
|
|
|
|
proxy_request_buffering off;
|
|
proxy_buffering off;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection "";
|
|
|
|
proxy_read_timeout 600s;
|
|
proxy_send_timeout 600s;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://zot;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name zot.linuxiarz.pl;
|
|
|
|
location / {
|
|
return 301 https://zot.linuxiarz.pl$request_uri;
|
|
}
|
|
}
|