27 lines
534 B
Plaintext
27 lines
534 B
Plaintext
server {
|
|
listen 443 http2 ssl;
|
|
listen [::]:443 http2 ssl;
|
|
|
|
server_name <%= @server_name %>;
|
|
|
|
access_log off;
|
|
|
|
ssl_certificate <%= @ssl_cert %>;
|
|
ssl_certificate_key <%= @ssl_key %>;
|
|
|
|
error_page 401 403 404 500 /__empty-page.html;
|
|
|
|
location = /__empty-page.html {
|
|
internal;
|
|
return 200 "";
|
|
}
|
|
|
|
location / {
|
|
proxy_intercept_errors on;
|
|
proxy_cache garage_cache;
|
|
proxy_pass http://garage_web;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
}
|
|
}
|