mirror of https://github.com/Aidaho12/haproxy-wi
parent
1bec825b94
commit
5239d5dc74
|
@ -1,20 +1,19 @@
|
|||
[main]
|
||||
#Path to files destination
|
||||
# Path to the files destination
|
||||
fullpath = /var/www/haproxy-wi
|
||||
log_path = ${fullpath}/log/
|
||||
log_path = ${fullpath}/log/
|
||||
|
||||
[configs]
|
||||
#Dir where configs will be save
|
||||
# Folders for configs
|
||||
haproxy_save_configs_dir = ${main:fullpath}/configs/hap_config/
|
||||
kp_save_configs_dir = ${main:fullpath}/configs/kp_config/
|
||||
nginx_save_configs_dir = ${main:fullpath}/configs/nginx_config/
|
||||
|
||||
[mysql]
|
||||
#Enable MySQL DB. Default will be used Sqlite DB. Default disable
|
||||
# By default Sqlite DB is used
|
||||
enable = 0
|
||||
mysql_user = haproxy-wi
|
||||
mysql_password = haproxy-wi
|
||||
mysql_db = haproxywi
|
||||
mysql_user = roxy-wi
|
||||
mysql_password = roxy-wi
|
||||
mysql_db = roxywi
|
||||
mysql_host = 127.0.0.1
|
||||
mysql_port = 3306
|
||||
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
TimeOut 600
|
||||
LimitRequestLine 16380
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
||||
RewriteRule /(.*) ws://localhost:8765/ [P,L]
|
||||
ProxyPassReverse / http://localhost:8765/
|
||||
WSGIDaemonProcess api display-name=%{GROUP} user=apache group=apache processes=1 threads=5
|
||||
WSGIScriptAlias /api /var/www/haproxy-wi/api/app.wsgi
|
||||
|
||||
|
@ -51,7 +55,7 @@
|
|||
Order Deny,Allow
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
|
||||
|
||||
<FilesMatch "\.db$">
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
|
@ -69,4 +73,4 @@
|
|||
Header set Cache-Control "max-age=86400, public"
|
||||
</filesMatch>
|
||||
</IfModule>
|
||||
</VirtualHost>
|
||||
</VirtualHost>
|
||||
|
|
|
@ -12,6 +12,11 @@
|
|||
TimeOut 600
|
||||
LimitRequestLine 16380
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:Upgrade} =websocket [NC]
|
||||
RewriteRule /(.*) ws://localhost:8765/ [P,L]
|
||||
ProxyPassReverse / http://localhost:8765/
|
||||
|
||||
WSGIDaemonProcess api display-name=%{GROUP} user=www-data group=www-data processes=1 threads=5
|
||||
WSGIScriptAlias /api /var/www/haproxy-wi/api/app.wsgi
|
||||
|
||||
|
@ -51,7 +56,7 @@
|
|||
Order Deny,Allow
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
|
||||
|
||||
<FilesMatch "\.db$">
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
|
|
Loading…
Reference in New Issue