We're evaluating LS7 for a major upgrade from LS3 and I am looking for documentation around enabling the new editor.
Right now I'm getting a 404 when i click "Edit Survey". The URL it brings me to is https://internal-limesurvey-dev/editor/#/survey/714327. I can see it's a react app with all the build tools and scripts in /editor/. Is there any documentation in how to do build and access that?
Code:
config.php:[code]<?php if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
return array(
'name' => 'LimeSurvey',
'components' => array(
'db' => array(
'connectionString' => 'sqlsrv:Server=${DB_HOST},${DB_PORT};Database=${DB_NAME};TrustServerCertificate=True',
'emulatePrepare' => true,
'username' => '${DB_USER}',
'password' => '${DB_PASSWORD}',
'charset' => 'utf8',
'tablePrefix' => '',
'initSQLs' => array('SET DATEFORMAT ymd;', 'SET QUOTED_IDENTIFIER ON;')),
'cache' => array(
'class' => 'CMemCache',
'useMemcached' => true,
'servers' => array(array(
'host' => 'limesurvey-memcached',
'port' => 11211,
'weight' => 1)),
),
'log' => array(
'routes' => array(
'stderr' => array(
'class' => 'application.extensions.StderrLogRoute',
'levels' => 'trace, debug, info, warning, error',
),
),
),
'urlManager' => array(
'urlFormat' => 'path',
'rules' => require('routes.php'),
'showScriptName' => false,
),
),
'config' => array(
'baseUrl' => '/limesurvey',
'debug' => 0,
'debugsql' => 0,
'force_ssl' => true,
'language' => 'en',
'sitename' => 'xxx',
'updatable' => false,
)
);
/* End of file config.php */
/* Location: ./application/config/config.php */
Code:
nginx.conf:[code]location / {
# Redirect everything that is not a real file to index.php
try_files $uri $uri/ /index.php$is_args$args;
}
# Redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html/;
}
location ~ ^/(admin|dashboard) {
allow 1.2.3.0/24;
deny all;
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
try_files $fastcgi_script_name =404;
root /var/www/html/limesurvey;
fastcgi_pass limesurvey-php:9000;
fastcgi_index /limesurvey/index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
include /etc/nginx/fastcgi_params;
fastcgi_read_timeout 60s;
fastcgi_send_timeout 60s;
fastcgi_buffer_size 32k;
fastcgi_buffers 16 16k;
fastcgi_busy_buffers_size 64k;
}