File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ upstream puma_server {
2+ server unix:/app/rosa-build/rosa_build.sock fail_timeout=0;
3+ }
4+
5+ server {
6+ listen 80;
7+ server_name errbit.openmandriva.org;
8+
9+ root /app/rosa-build/public;
10+ try_files $uri @puma_server;
11+
12+ location @puma_server {
13+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
14+ proxy_set_header Host $http_host;
15+ #proxy_set_header X-Forwarded-Proto https; # if use ssl
16+ proxy_redirect off;
17+ proxy_pass http://puma_server;
18+ }
19+
20+ location ~ ^/(assets)/ {
21+ gzip_static on;
22+ expires max;
23+ add_header Cache-Control public;
24+ add_header Last-Modified "";
25+ add_header ETag "";
26+
27+ open_file_cache max=1000 inactive=500s;
28+ open_file_cache_valid 600s;
29+ open_file_cache_errors on;
30+ break;
31+ }
32+ }
You can’t perform that action at this time.
0 commit comments