Fix configuration & docker file
This commit is contained in:
+4
-6
@@ -1,13 +1,11 @@
|
|||||||
FROM nginx
|
FROM nginx
|
||||||
#COPY public /opt/mainsite/wrenchboard/www-api/public
|
|
||||||
COPY . /opt/mainsite/wrenchboard/www-api/
|
COPY . /opt/mainsite/wrenchboard/www-api/
|
||||||
COPY application /opt/mainsite/wrenchboard/www-api/application
|
COPY application /opt/mainsite/wrenchboard/www-api/application
|
||||||
COPY system /opt/mainsite/wrenchboard/www-api/system
|
COPY system /opt/mainsite/wrenchboard/www-api/system
|
||||||
# COPY composer.json /opt/mainsite/wrenchboard/www-api/composer.json
|
COPY composer.json /opt/mainsite/wrenchboard/www-api/composer.json
|
||||||
# COPY vendor /opt/mainsite/wrenchboard/www-api/vendor
|
COPY vendor /opt/mainsite/wrenchboard/www-api/vendor
|
||||||
# COPY app /opt/mainsite/wrenchboard/www-api/app
|
COPY writable /opt/mainsite/wrenchboard/www-api/writable
|
||||||
# COPY writable /opt/mainsite/wrenchboard/www-api/writable
|
RUN chmod -R a+w /opt/mainsite/wrenchboard/www-api/writable
|
||||||
# RUN chmod -R a+w /opt/mainsite/wrenchboard/www-api/writable
|
|
||||||
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY nginx/fastcgi.conf /etc/nginx/fastcgi.conf
|
COPY nginx/fastcgi.conf /etc/nginx/fastcgi.conf
|
||||||
COPY nginx/proxy.conf /etc/nginx/proxy.conf
|
COPY nginx/proxy.conf /etc/nginx/proxy.conf
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ $config['base_url'] = '';
|
|||||||
| variable so that it is blank.
|
| variable so that it is blank.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['index_page'] = 'index.php';
|
$config['index_page'] = ''; //index.php';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@@ -52,7 +52,7 @@ $config['index_page'] = 'index.php';
|
|||||||
|
|
|
|
||||||
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||||
*/
|
*/
|
||||||
$config['uri_protocol'] = 'REQUEST_URI';
|
$config['uri_protocol'] = 'AUTO'; // 'REQUEST_URI';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@@ -236,7 +236,7 @@ $config['log_threshold'] = 0;
|
|||||||
| application/logs/ directory. Use a full server path with trailing slash.
|
| application/logs/ directory. Use a full server path with trailing slash.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['log_path'] = '';
|
$config['log_path'] = BASEPATH . 'writable/logs';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@@ -295,7 +295,7 @@ $config['error_views_path'] = '';
|
|||||||
| application/cache/ directory. Use a full server path with trailing slash.
|
| application/cache/ directory. Use a full server path with trailing slash.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['cache_path'] = '';
|
$config['cache_path'] = BASEPATH . 'writable/cache';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@@ -387,7 +387,7 @@ $config['sess_driver'] = 'files';
|
|||||||
$config['sess_cookie_name'] = 'ci_session';
|
$config['sess_cookie_name'] = 'ci_session';
|
||||||
$config['sess_samesite'] = 'Lax';
|
$config['sess_samesite'] = 'Lax';
|
||||||
$config['sess_expiration'] = 7200;
|
$config['sess_expiration'] = 7200;
|
||||||
$config['sess_save_path'] = NULL;
|
$config['sess_save_path'] = BASEPATH . 'writable/session';
|
||||||
$config['sess_match_ip'] = FALSE;
|
$config['sess_match_ip'] = FALSE;
|
||||||
$config['sess_time_to_update'] = 300;
|
$config['sess_time_to_update'] = 300;
|
||||||
$config['sess_regenerate_destroy'] = FALSE;
|
$config['sess_regenerate_destroy'] = FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user