This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ok.org.br
184 lines (147 loc) · 4.66 KB
/
ok.org.br
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
##
# Servidores OK.ORG.BR
##
server {
server_name ok.org.br www.ok.org.br;
location / {
proxy_pass http://br.okfn.org;
}
include snippets/ssl-oficial.news.conf;
} #end server
server {
server_name tv.ok.org.br;
location / {
proxy_pass http://www.youtube.com/user/okfnbr;
}
include snippets/ssl-oficial.news.conf;
} #end server
server {
server_name discus.ok.org.br discuss.ok.org.br;
location / {
rewrite
^/?$
http://discuss.okfn.org/c/local-groups/okbr
break;
rewrite
^/?(\d+)$
http://discuss.okfn.org/t/$1
break;
rewrite
^/?tags/(.+)$
http://discuss.okfn.org/tags/$1
break;
rewrite
^/?(t/.+)$
http://discuss.okfn.org/$1
break;
rewrite
^/?(.+)$
http://discuss.okfn.org/t/$1
break;
}
include snippets/ssl-oficial.news.conf;
} #end server
server {
server_name datasets.ok.org.br;
location / { proxy_pass http://github.com/datasets-br; }
include snippets/ssl-oficial.news.conf;
}
server {
server_name fotos.ok.org.br;
location / { proxy_pass http://www.flickr.com/search/?w=all&q=okfnbr&m=tags; }
include snippets/ssl-oficial.news.conf;
}
server {
server_name suporte.ok.org.br;
root /var/www/suporte.ok.org.br;
index index.html index.htm;
#falta root redirecionar para index.htm!
location / {
rewrite
^/?git$
http://github.com/okfn-brasil/suporte
break;
rewrite
^/?([vV][\.\d]+)$
http://github.com/okfn-brasil/suporte/tree/$1
break;
rewrite
^/?tickets$
http://github.com/okfn-brasil/suporte/issues
break;
rewrite
^/?(?:(?:tic|ticket)/)?(\d+)$
http://github.com/okfn-brasil/suporte/issues/$1
break;
rewrite
^/?(.+)$
http://github.com/okfn-brasil/suporte/$1
break;
}
include snippets/ssl-oficial.news.conf;
} #end server
server {
server_name hackathons.ok.org.br;
location / { proxy_pass http://github.com/okfn-brasil/hackathons; }
include snippets/ssl-oficial.news.conf;
}
server {
server_name miniguias.ok.org.br;
location / { proxy_pass http://okfn-brasil.github.io/miniguias; }
include snippets/ssl-oficial.news.conf;
}
server {
server_name git.ok.org.br;
location / { proxy_pass http://github.com/okfn-brasil/; }
include snippets/ssl-oficial.news.conf;
}
server {
server_name identidade-digital.ok.org.br;
location / { proxy_pass http://okfn-brasil.github.io/identidade-digital; }
include snippets/ssl-oficial.news.conf;
}
server {
server_name api.ok.org.br;
root /var/www/api.ok.org.br;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ @rewriteIt;
# try_files $uri $uri/ index.php?q=$uri;
}
location @rewriteIt {
rewrite ^/?(issn|trazdia|getdoc)/
/resolver.php?$uri last;
rewrite ^/?getfrag($|/)
/frag-resolver.php?uri=$uri last;
rewrite ^/?(.*)$
/error.php?$1 last;
}
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
include snippets/ssl-oficial.news.conf;
} #end server
server {
server_name baixar.ok.org.br file.ok.org.br;
location / {
try_files $uri $uri/ @proxy;
}
location @proxy {
rewrite
^/(.+?)\.(pdf|rss|txt|epub|docx?|odt|xml|csv)$
https://github.com/okfn-brasil/oficial-backups/raw/master/docs/$1.$2
break;
}
include snippets/ssl-oficial.news.conf;
} #end server
server {
server_name ver.ok.org.br view.ok.org.br;
root /var/www/readoc;
index index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ =404;
}
include snippets/ssl-oficial.news.conf;
} #end server