Fix configuration & docker file

This commit is contained in:
2022-11-27 06:23:02 +08:00
parent 3d719c230a
commit d17fa32058
2 changed files with 9 additions and 11 deletions
+4 -6
View File
@@ -1,13 +1,11 @@
FROM nginx
#COPY public /opt/mainsite/wrenchboard/www-api/public
COPY . /opt/mainsite/wrenchboard/www-api/
COPY application /opt/mainsite/wrenchboard/www-api/application
COPY system /opt/mainsite/wrenchboard/www-api/system
# COPY composer.json /opt/mainsite/wrenchboard/www-api/composer.json
# COPY vendor /opt/mainsite/wrenchboard/www-api/vendor
# COPY app /opt/mainsite/wrenchboard/www-api/app
# COPY writable /opt/mainsite/wrenchboard/www-api/writable
# RUN chmod -R a+w /opt/mainsite/wrenchboard/www-api/writable
COPY composer.json /opt/mainsite/wrenchboard/www-api/composer.json
COPY vendor /opt/mainsite/wrenchboard/www-api/vendor
COPY writable /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/fastcgi.conf /etc/nginx/fastcgi.conf
COPY nginx/proxy.conf /etc/nginx/proxy.conf
+5 -5
View File
@@ -35,7 +35,7 @@ $config['base_url'] = '';
| 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!
*/
$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.
|
*/
$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.
|
*/
$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_samesite'] = 'Lax';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_save_path'] = BASEPATH . 'writable/session';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;