Skip to content

Commit 370441f

Browse files
committed
push errbit.conf
1 parent c29d214 commit 370441f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

errbit.conf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
}

0 commit comments

Comments
 (0)