Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eterban
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eterban
Commits
d8fc1f97
Commit
d8fc1f97
authored
Sep 11, 2019
by
Ruzal Gimazov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixed
parent
6565f0dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
nginx.conf
ban-server/nginx.conf
+2
-2
eterban.spec
eterban.spec
+19
-11
No files found.
ban-server/nginx.conf
View file @
d8fc1f97
...
...
@@ -18,12 +18,12 @@ http {
server
{
location
/
{
root
/
data/www
;
root
/
var/www/html/eterban/
;
}
location
~
\.php$
{
try_files
$uri
=
404
;
root
/
data/www
;
root
/
var/www/html/eterban/
;
include
/etc/nginx/fastcgi.conf
;
fastcgi_pass
unix:/var/run/php7-fpm/php7-fpm.sock
;
}
...
...
eterban.spec
View file @
d8fc1f97
...
...
@@ -57,29 +57,37 @@ Etersoft ban service.
#install -m644 include/limits/* %buildroot%_sysconfdir/nginx/include/limits/
mkdir -p %buildroot%_datadir/%name/
mkdir -p %buildroot/etc/%name/
install -m 755 gateway/usr/share/* %buildroot%_datadir/%name/
mkdir -p %buildroot/etc/fail2ban/action.d/
mkdir -p %buildroot/etc/fail2ban/jail.d/
mkdir -p %buildroot/etc/systemd/system/
mkdir -p %buildroot%webserver_htdocsdir/%name/
cp -a gateway/usr/share/%name/* %buildroot%_datadir/%name/
install -m 644 gateway/etc/eterban/* %buildroot/etc/%name/
install -m 644 gateway/etc/fail2ban/action.d/* %buildroot/etc/fail2ban/action.d/
install -m 644 gateway/etc/fail2ban/jail.d/* %buildroot/etc/fail2ban/jail.d/
install -m 644 gateway/etc/systemd/system/* %buildroot/etc/systemd/system/
install -m 644 ban-server/data/www/* %buildroot/ban-server/data/www/
#mkdir -p %buildroot%_datadir/%name/images/
#install -m644 share/images/* %buildroot%_datadir/%name/images/
install -m 644 ban-server/data/www/* %buildroot%webserver_htdocsdir/%name/
#mkdir -p %buildroot%webserver_htdocsdir/maintenance
/
#install -m644 www/* %buildroot%webserver_htdocsdir/maintenanc
e/
install -m 644 prod-server/etc/fail2ban/action.d/* %buildroot/etc/fail2ban/action.d
/
cp -a prod-server/usr/share/%name/* %buildroot%_datadir/%nam
e/
%files gateway
#%dir %_sysconfdir/nginx/include/
#%config(noreplace) %_sysconfdir/nginx/include/*
/etc/%name/eterban.conf
/etc/fail2ban/action.d/ban.conf
/etc/fail2ban/jail.d/blacklist.conf
/etc/systemd/system/
%_datadir/%name/eterban_switcher.py
%files web
%webserver_htdocsdir/%name/
#%files fail2ban
#%_datadir/%name/file
%files fail2ban
/etc/%name/eterban.conf
%_datadir/%name/ban.py
%changelog
* Sat Sep 07 2019 Vitaly Lipatov <lav@altlinux.ru> 0.1-alt1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment