mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 14:12:36 -05:00
fix proxy cache for config map
This commit is contained in:
parent
5c93cf9cd3
commit
125e146150
1 changed files with 7 additions and 2 deletions
|
@ -106,7 +106,7 @@ data:
|
||||||
video/x-ms-wmv wmv;
|
video/x-ms-wmv wmv;
|
||||||
video/x-msvideo avi;
|
video/x-msvideo avi;
|
||||||
}
|
}
|
||||||
|
|
||||||
nginx.conf: |
|
nginx.conf: |
|
||||||
user www-data;
|
user www-data;
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
|
@ -155,6 +155,11 @@ data:
|
||||||
'' close;
|
'' close;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
proxy_cache_path /tmp/cache/ levels=2:2 keys_zone=penpot:20m;
|
||||||
|
proxy_cache_methods GET HEAD;
|
||||||
|
proxy_cache_valid any 48h;
|
||||||
|
proxy_cache_key "$host$request_uri";
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
@ -227,7 +232,7 @@ data:
|
||||||
add_header x-internal-redirect "$upstream_http_x_accel_redirect";
|
add_header x-internal-redirect "$upstream_http_x_accel_redirect";
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
location ~ ^/github/penpot-files/(?<template_file>[a-zA-Z0-9\-\_\.]+) {
|
location ~ ^/github/penpot-files/(?<template_file>[a-zA-Z0-9\-\_\.]+) {
|
||||||
proxy_pass https://raw.githubusercontent.com/penpot/penpot-files/main/$template_file;
|
proxy_pass https://raw.githubusercontent.com/penpot/penpot-files/main/$template_file;
|
||||||
proxy_hide_header Access-Control-Allow-Origin;
|
proxy_hide_header Access-Control-Allow-Origin;
|
||||||
|
|
Loading…
Add table
Reference in a new issue