-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx-etersoft.spec
251 lines (198 loc) · 8.26 KB
/
nginx-etersoft.spec
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
Name: nginx-etersoft
Version: 0.2.26
Release: alt1
Summary: Additional Nginx templates and functions
License: AGPLv3
Group: Development/Other
Url: http://www.altlinux.org/Nginx-etersoft
Packager: Vitaly Lipatov <lav@altlinux.ru>
# git-clone http://git.altlinux.org/people/lav/packages/%name.git
# git-clone http://git.etersoft.ru/people/lav/packages/%name.git
Source: %name-%version.tar
BuildArchitectures: noarch
# error: File must begin with "/": %webserver_htdocsdir/maintenance/
BuildRequires: rpm-macros-webserver-common
Requires: nginx >= 1.8.1
%description
Additional Nginx templates and functions.
%prep
%setup
%install
mkdir -p %buildroot%_sysconfdir/nginx/include/limits/
install -m644 include/*.conf %buildroot%_sysconfdir/nginx/include/
install -m644 include/*.inc %buildroot%_sysconfdir/nginx/include/
install -m644 include/limits/* %buildroot%_sysconfdir/nginx/include/limits/
mkdir -p %buildroot%_sysconfdir/nginx/httpconf-enabled.d/
mkdir -p %buildroot%_sysconfdir/nginx/httpconf-available.d/
install -m644 httpconf-available.d/* %buildroot%_sysconfdir/nginx/httpconf-available.d/
mkdir -p %buildroot%_sysconfdir/nginx/sites-available.d/
install -m644 sites-available.d/* %buildroot%_sysconfdir/nginx/sites-available.d/
mkdir -p %buildroot%_sysconfdir/nginx/examples/
install -m644 examples/* %buildroot%_sysconfdir/nginx/examples/
mkdir -p %buildroot%_datadir/%name/images/
install -m644 share/images/* %buildroot%_datadir/%name/images/
mkdir -p %buildroot%webserver_htdocsdir/maintenance/
install -m644 www/* %buildroot%webserver_htdocsdir/maintenance/
%files
%dir %_sysconfdir/nginx/include/
%config(noreplace) %_sysconfdir/nginx/include/*
%dir %_sysconfdir/nginx/httpconf-available.d/
%dir %_sysconfdir/nginx/httpconf-enabled.d/
%config(noreplace) %_sysconfdir/nginx/httpconf-available.d/*
%config(noreplace) %_sysconfdir/nginx/sites-available.d/
%_sysconfdir/nginx/examples/
%_datadir/%name/
%dir %webserver_htdocsdir/maintenance/
%config(noreplace) %webserver_htdocsdir/maintenance/*
%changelog
* Sat Dec 11 2021 Vitaly Lipatov <lav@altlinux.ru> 0.2.26-alt1
- store-proxy.inc: add http_500 for proxy_cache_use_stale
- use cached limits for all store
* Tue Sep 08 2020 Vitaly Lipatov <lav@altlinux.ru> 0.2.25-alt1
- fix upstream sent too big header while reading... (eterbug 14534)
- letsencrypt.conf: add satisfy any;
- add webp support
* Thu Feb 13 2020 Vitaly Lipatov <lav@altlinux.ru> 0.2.24-alt1
- add websocket.conf
- log.conf: add netdata format
- add detect_browser.conf: set platform to desktop, mobile, tablet, bots
- add trans-reproxy.inc (use it after store-*.conf)
* Tue Feb 05 2019 Vitaly Lipatov <lav@altlinux.ru> 0.2.23-alt1
- stat.conf: add stub_status location for netdata (eterbug #13591)
- add initial fastcgi config
* Sat Nov 24 2018 Vitaly Lipatov <lav@altlinux.ru> 0.2.22-alt1
- add skip apple-touch requests
- proxy: improve set X-Forwarded-Proto
- story-proxy: skip cache for WP cookie
- ssl.conf: use Secure only for https sites
- fix static-stub.conf
- trans-reproxy.conf: improve passed vars
- fix X-Forwarded-For
* Fri Aug 17 2018 Vitaly Lipatov <lav@altlinux.ru> 0.2.21-alt1
- letsencrypt: use /.well-known/acme-challenge
- mediawiki: add /resources/assets
- mediawiki: expires 7d for statics
- static: add m4b
* Thu Jan 04 2018 Vitaly Lipatov <lav@altlinux.ru> 0.2.20-alt1
- fix static-stub-* conf
- add static-stub404.conf
- ssl.conf: improve cookie security
- separate hsts to sslhsts.conf
* Thu Dec 14 2017 Vitaly Lipatov <lav@altlinux.ru> 0.2.19-alt1
- static-fallback.conf: drop double fonts list
- mediawiki: fix for trailing slash
- fix duplicate $uri $uri/ in try_files
- cors*.conf: drop if (https://trac.nginx.org/nginx/ticket/234)
* Tue Oct 24 2017 Vitaly Lipatov <lav@altlinux.ru> 0.2.18-alt1
- separate locations by file types
- add CORS wide-open rules
- add CORS with http_referer
* Thu Apr 20 2017 Vitaly Lipatov <lav@altlinux.ru> 0.2.17-alt1
- letsencrypt: add allow all
- ssl: improve comment
- extent static extensions
* Fri Feb 10 2017 Vitaly Lipatov <lav@altlinux.ru> 0.2.16-alt1
- set Accept-Encoding to empty (force disabling gzip on apache side)
- add OCSP stapling (eterbug #11621)
* Sat Sep 03 2016 Vitaly Lipatov <lav@altlinux.ru> 0.2.15-alt1
- log.conf: add some logs formats
- add nosslonly.conf script
- store-proxy: add X-Powered-By
- add ip-server config for ignore ip based requests
- add HSTS example
- add stop-cms.conf against requests to a popular CMS urls
* Thu Apr 07 2016 Vitaly Lipatov <lav@altlinux.ru> 0.2.14-alt1
- set required nginx version to 1.8.1
- use default proxy_cache_key value
- use scheme for proxy_cache_key
- make proxy_cache_lock really works
- add store-week-proxy.conf
- add proxy_*_timeout example
* Fri Mar 18 2016 Vitaly Lipatov <lav@altlinux.ru> 0.2.13-alt1
- allow permanent trans-repoxy
- add letsencrypt.conf
- create_nginx: add check
* Thu Mar 03 2016 Vitaly Lipatov <lav@altlinux.ru> 0.2.12-alt1
- set X-Forwarded-Proto for static proxy too
* Thu Mar 03 2016 Vitaly Lipatov <lav@altlinux.ru> 0.2.11-alt1
- add woff2 support
- improve TLS security (eterbug #10599)
- add comment about ssl detection on the server side
* Thu Nov 12 2015 Vitaly Lipatov <lav@altlinux.ru> 0.2.10-alt1
- stop-injection: replace 401 with 406 error code
- stop-injection: fix against sleep
- do not wait so long for login to admin part
* Fri Oct 30 2015 Vitaly Lipatov <lav@altlinux.ru> 0.2.9-alt1
- update limits
- stop-crack: add rules for Joomla xmlrpc.php and Bitrix admin
- add hostreq limit for per site restriction
- add log write to deny rules
- fix anti injection rules and add write to log
- stop-crack: fix bitrix rule, add phpbb rule
* Thu Aug 06 2015 Vitaly Lipatov <lav@altlinux.ru> 0.2.8-alt1
- log.conf: add logdata
- mediawiki: improve
- store-proxy: cache lock on
- store-proxy: ignore Set-Cookie
* Mon Mar 10 2014 Vitaly Lipatov <lav@altlinux.ru> 0.2.7-alt1
- fix limit name
- improve stop-injection
- static-fallback: remove json and xml from rules
- add static-icons and disable nocache for first pages
- static-fallback: update video formats
- add stat-apache file
- ssl fixes
* Sat Oct 19 2013 Vitaly Lipatov <lav@altlinux.ru> 0.2.6-alt1
- use /var/lib/vz/private
- fix expires
- add mediateproxy, fix other configs
- rewrite trans conf via main trans-proxy.inc
* Sun Oct 06 2013 Vitaly Lipatov <lav@altlinux.ru> 0.2.5-alt1
- rename config, add techalias
- rewrite the rewrite checking code
- create_nginx: add support for mediawiki engine
- static-fallback: add support for yandex auth file
* Sat Aug 03 2013 Vitaly Lipatov <lav@altlinux.ru> 0.2.4-alt1
- improve stop-injection.conf
- stop-crack: catch /edit requests
- admin pages: do log access-admin.log
- static-stub: make log
- stop-crack: stop wp-admin control
- add maintenance page
* Sat Mar 23 2013 Vitaly Lipatov <lav@altlinux.ru> 0.2.3-alt1
- add trans-admin-proxy.conf
- deny.conf: forbids sql and .hg
- stop-crack.conf: slow login pages for WordPress and Joomla
- add limits for media
- move admin limits to separate files
* Fri Jan 04 2013 Vitaly Lipatov <lav@altlinux.ru> 0.2.2-alt1
- add static-stub and images for it
- add no_cache example
- create_nginx_from_apache: do not update config if not changed
* Sat Nov 24 2012 Vitaly Lipatov <lav@altlinux.ru> 0.2.1-alt1
- add nodelay to limit_req
- add initial stop-injection.conf
* Wed Mar 21 2012 Vitaly Lipatov <lav@altlinux.ru> 0.2.0-alt1
- moved to nginx >= 1.1.8
- too many incompatible changes
* Thu Mar 15 2012 Vitaly Lipatov <lav@altlinux.ru> 0.1.7-alt1
- add subst-site.conf for site.ru/subdir -> some.site.ru proxying
* Mon Nov 07 2011 Vitaly Lipatov <lav@altlinux.ru> 0.1.6-alt1
- add static-fallback.conf, mark as obsoleted static, static-images
* Thu Oct 20 2011 Vitaly Lipatov <lav@altlinux.ru> 0.1.5-alt1
- add logdefine.conf
- add reproxy.conf for internal redirect
- small static update
* Thu Jun 09 2011 Vitaly Lipatov <lav@altlinux.ru> 0.1.4-alt1
- add static-images.conf
* Thu Nov 11 2010 Vitaly Lipatov <lav@altlinux.ru> 0.1.3-alt1
- fix robots.txt rewrite for set-mainhost
* Thu Nov 11 2010 Vitaly Lipatov <lav@altlinux.ru> 0.1.2-alt1
- correct ignore www rewrite for robots.txt
- hold scheme when set main host
- set proxy_buffer_size in all proxy
- use relate path instead full
* Sun Mar 07 2010 Vitaly Lipatov <lav@altlinux.ru> 0.1.1-alt1
- add examples, add ssl configs
* Sat Mar 06 2010 Vitaly Lipatov <lav@altlinux.ru> 0.1-alt1
- initial build