diff --git a/app/server/Install/config.json b/app/server/Install/config.json index 0e0dcd2..0101c7a 100755 --- a/app/server/Install/config.json +++ b/app/server/Install/config.json @@ -1,3 +1,119 @@ { - + "db": { + "core": { + "masters": { + "admin": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + }, + "insert": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + }, + "select": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + }, + "update": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + }, + "delete": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + }, + "schema": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + } + } + } + }, + "mail": { + "imap": { + "host": "127.0.0.1", + "port": 143, + "ssl": false, + "user": "test", + "password": "123456" + }, + "pop3": { + "host": "127.0.0.1", + "port": 25, + "ssl": false, + "user": "test", + "password": "123456" + } + }, + "cache": { + "redis": { + "db": 1, + "host": "127.0.0.1", + "port": 6379 + }, + "memcached": { + "host": "127.0.0.1", + "port": 11211 + } + }, + "log": { + "file": { + "path": "/home/spl1nes/repos/OnlineResourceWatcherApp/app/server/Logs" + } + }, + "page": { + "root": "/", + "https": false, + "type": "dist" + }, + "app": { + "path": "/home/spl1nes/repos/OnlineResourceWatcherApp/app/server", + "default": { + "app": "Frontend", + "id": "frontend", + "lang": "en" + }, + "domains": { + "127.0.0.1": { + "app": "Frontend", + "id": "frontend", + "lang": "en" + } + } + }, + "language": [ + "en", + "de", + "it" + ] } \ No newline at end of file diff --git a/app/server/config.json b/app/server/config.json index f2ddb58..6691287 100755 --- a/app/server/config.json +++ b/app/server/config.json @@ -1 +1,119 @@ -"# BEGIN Gzip Compression\n\n AddEncoding gzip .gz\n \n AddType \"text\/javascript\" .gz\n <\/filesmatch>\n \n AddType \"text\/css\" .gz\n <\/filesmatch>\n<\/ifmodule>\n\nAddType font\/ttf .ttf\nAddType font\/otf .otf\nAddType application\/font-woff .woff\nAddType application\/vnd.ms-fontobject .eot\n\n\n AddOutputFilterByType DEFLATE text\/text text\/html text\/plain text\/xml text\/css application\/x-javascript application\/javascript text\/javascript\n<\/ifmodule>\n# END Gzip Compression\n\n# Force mime for javascript files\n\n ForceType text\/javascript\n<\/Files>\n\n# BEGIN Caching\n\n ExpiresActive On\n ExpiresDefault A300\n\n ExpiresByType image\/x-icon A2592000\n\n \n ExpiresDefault A0\n Header set Cache-Control \"no-store, no-cache, must-revalidate, max-age=0\"\n Header set Pragma \"no-cache\"\n <\/FilesMatch>\n<\/ifModule>\n# END Caching\n\n# BEGIN Spelling\n\n CheckSpelling On\n CheckCaseOnly On\n<\/IfModule>\n# END Spelling\n\n# BEGIN URL rewrite\n\n RewriteEngine On\n RewriteBase \/\n RewriteCond %{HTTP:Accept-encoding} gzip\n RewriteCond %{REQUEST_FILENAME} \\.(js|css)$\n RewriteCond %{REQUEST_FILENAME}.gz -f\n RewriteRule ^(.*)$ $1.gz [QSA,L]\n RewriteCond %{REQUEST_FILENAME} !-d\n RewriteCond %{REQUEST_FILENAME} !-f\n RewriteRule ^(.*)$ \/?{QUERY_STRING} [QSA]\n RewriteCond %{HTTPS} !on\n RewriteCond %{HTTP_HOST} !^(127\\.0\\.0)|(192\\.)|(172\\.)\n RewriteRule (.*) https:\/\/%{HTTP_HOST}%{REQUEST_URI}\n<\/ifmodule>\n# END URL rewrite\n\n# BEGIN Access control\n\n Order Deny,Allow\n Deny from all\n Allow from 127.0.0.1\n<\/Files>\n\n Allow from all\n<\/Files>\n# END Access control\n\n# Disable directory view\nOptions All -Indexes\n\n# Disable unsupported scripts\nOptions -ExecCGI\nAddHandler cgi-script .pl .py .jsp .asp .shtml .sh .cgi\n\n#\n# # XSS protection\n# header always set x-xss-protection \"1; mode=block\"\n#\n# # Nosnif\n# header always set x-content-type-options \"nosniff\"\n#\n# # Iframes only from self\n# header always set x-frame-options \"SAMEORIGIN\"\n#<\/ifmodule>\n\n\n \n Header set Service-Worker-Allowed \"\/\"\n <\/FilesMatch>\n<\/ifmodule>\n\n# Php config\n# This should be removed from here and adjusted in the php.ini file\nphp_value upload_max_filesize 40M\nphp_value post_max_size 40M\nphp_value memory_limit 128M\nphp_value max_input_time 30\nphp_value max_execution_time 30" \ No newline at end of file +{ + "db": { + "core": { + "masters": { + "admin": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + }, + "insert": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + }, + "select": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + }, + "update": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + }, + "delete": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + }, + "schema": { + "db": "mysql", + "host": "127.0.0.1", + "port": "3306", + "login": "root", + "password": "root", + "database": "oms_orw", + "weight": 1000 + } + } + } + }, + "mail": { + "imap": { + "host": "127.0.0.1", + "port": 143, + "ssl": false, + "user": "test", + "password": "123456" + }, + "pop3": { + "host": "127.0.0.1", + "port": 25, + "ssl": false, + "user": "test", + "password": "123456" + } + }, + "cache": { + "redis": { + "db": 1, + "host": "127.0.0.1", + "port": 6379 + }, + "memcached": { + "host": "127.0.0.1", + "port": 11211 + } + }, + "log": { + "file": { + "path": "\/in\/Logs" + } + }, + "page": { + "root": "\/", + "https": false, + "type": "dist" + }, + "app": { + "path": "\/in", + "default": { + "app": "Frontend", + "id": "frontend", + "lang": "en" + }, + "domains": { + "127.0.0.1": { + "app": "Frontend", + "id": "frontend", + "lang": "en" + } + } + }, + "language": [ + "en", + "de", + "it" + ] +} \ No newline at end of file