Commit d8fc1f97 authored by Ruzal Gimazov's avatar Ruzal Gimazov

Bug fixed

parent 6565f0dc
...@@ -18,12 +18,12 @@ http { ...@@ -18,12 +18,12 @@ http {
server { server {
location / { location / {
root /data/www; root /var/www/html/eterban/;
} }
location ~ \.php$ { location ~ \.php$ {
try_files $uri =404; try_files $uri =404;
root /data/www; root /var/www/html/eterban/;
include /etc/nginx/fastcgi.conf; include /etc/nginx/fastcgi.conf;
fastcgi_pass unix:/var/run/php7-fpm/php7-fpm.sock; fastcgi_pass unix:/var/run/php7-fpm/php7-fpm.sock;
} }
......
...@@ -57,29 +57,37 @@ Etersoft ban service. ...@@ -57,29 +57,37 @@ Etersoft ban service.
#install -m644 include/limits/* %buildroot%_sysconfdir/nginx/include/limits/ #install -m644 include/limits/* %buildroot%_sysconfdir/nginx/include/limits/
mkdir -p %buildroot%_datadir/%name/ mkdir -p %buildroot%_datadir/%name/
mkdir -p %buildroot/etc/%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/eterban/* %buildroot/etc/%name/
install -m 644 gateway/etc/fail2ban/action.d/* %buildroot/etc/fail2ban/action.d/ 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/fail2ban/jail.d/* %buildroot/etc/fail2ban/jail.d/
install -m 644 gateway/etc/systemd/system/* %buildroot/etc/systemd/system/ 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 -m 644 ban-server/data/www/* %buildroot%webserver_htdocsdir/%name/
#install -m644 share/images/* %buildroot%_datadir/%name/images/
#mkdir -p %buildroot%webserver_htdocsdir/maintenance/ install -m 644 prod-server/etc/fail2ban/action.d/* %buildroot/etc/fail2ban/action.d/
#install -m644 www/* %buildroot%webserver_htdocsdir/maintenance/ cp -a prod-server/usr/share/%name/* %buildroot%_datadir/%name/
%files gateway %files gateway
#%dir %_sysconfdir/nginx/include/ /etc/%name/eterban.conf
#%config(noreplace) %_sysconfdir/nginx/include/* /etc/fail2ban/action.d/ban.conf
/etc/fail2ban/jail.d/blacklist.conf
/etc/systemd/system/
%_datadir/%name/eterban_switcher.py
%files web %files web
%webserver_htdocsdir/%name/ %webserver_htdocsdir/%name/
#%files fail2ban %files fail2ban
#%_datadir/%name/file /etc/%name/eterban.conf
%_datadir/%name/ban.py
%changelog %changelog
* Sat Sep 07 2019 Vitaly Lipatov <lav@altlinux.ru> 0.1-alt1 * Sat Sep 07 2019 Vitaly Lipatov <lav@altlinux.ru> 0.1-alt1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment