Skip to content

Commit 21b05e2

Browse files
committed
add file-store.conf and fix errbit.conf
1 parent 370441f commit 21b05e2

File tree

2 files changed

+35
-23
lines changed

2 files changed

+35
-23
lines changed

errbit.conf

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,12 @@
1-
upstream puma_server {
2-
server unix:/app/rosa-build/rosa_build.sock fail_timeout=0;
3-
}
4-
51
server {
62
listen 80;
73
server_name errbit.openmandriva.org;
84

9-
root /app/rosa-build/public;
10-
try_files $uri @puma_server;
11-
12-
location @puma_server {
5+
location / {
136
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
147
proxy_set_header Host $http_host;
15-
#proxy_set_header X-Forwarded-Proto https; # if use ssl
168
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;
9+
proxy_pass http://errbit:3000;
3110
}
3211
}
12+

file-store.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/file_store/file_store_unicorn.sock fail_timeout=0;
3+
}
4+
5+
server {
6+
listen 80;
7+
server_name file-store.openmandriva.org;
8+
9+
root /app/file_store/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)