moved config to build/condig folder
This commit is contained in:
parent
e9995ea640
commit
09466caed0
@ -1,50 +1,50 @@
|
||||
{
|
||||
"core": {
|
||||
"base-domain":"localhost",
|
||||
"machinekey": "1123askdasjklasbnd",
|
||||
"notify": {
|
||||
"postman": "log"
|
||||
},
|
||||
"payment-partners" : "",
|
||||
"username" : {
|
||||
"regex" : "^[\\p{L}\\p{M}' \\-]+$"
|
||||
}
|
||||
},
|
||||
"web": {
|
||||
"alias" : {
|
||||
"min" : 3
|
||||
},
|
||||
"api-cache": "",
|
||||
"autotest" : {
|
||||
"secret-email" : ""
|
||||
},
|
||||
"app": {
|
||||
"keys": ""
|
||||
}
|
||||
},
|
||||
"recaptcha" : {
|
||||
"required" : false,
|
||||
"private-key" : {
|
||||
"default" : "",
|
||||
"android": "",
|
||||
"ios": ""
|
||||
}
|
||||
},
|
||||
"auth" : {
|
||||
"allowskip" : {
|
||||
"default" : false,
|
||||
"registerportal": true
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"default": {
|
||||
"name": "default",
|
||||
"connectionString": "Server=localhost;Database=docspace;User ID=dev;Password=dev;Pooling=true;Character Set=utf8;AutoEnlist=false;SSL Mode=none;AllowPublicKeyRetrieval=True;ConnectionReset=false",
|
||||
"providerName": "MySql.Data.MySqlClient"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"id": -3
|
||||
},
|
||||
"max-attempts-count" : 10
|
||||
{
|
||||
"core": {
|
||||
"base-domain":"localhost",
|
||||
"machinekey": "1123askdasjklasbnd",
|
||||
"notify": {
|
||||
"postman": "log"
|
||||
},
|
||||
"payment-partners" : "",
|
||||
"username" : {
|
||||
"regex" : "^[\\p{L}\\p{M}' \\-]+$"
|
||||
}
|
||||
},
|
||||
"web": {
|
||||
"alias" : {
|
||||
"min" : 3
|
||||
},
|
||||
"api-cache": "",
|
||||
"autotest" : {
|
||||
"secret-email" : ""
|
||||
},
|
||||
"app": {
|
||||
"keys": ""
|
||||
}
|
||||
},
|
||||
"recaptcha" : {
|
||||
"required" : false,
|
||||
"private-key" : {
|
||||
"default" : "",
|
||||
"android": "",
|
||||
"ios": ""
|
||||
}
|
||||
},
|
||||
"auth" : {
|
||||
"allowskip" : {
|
||||
"default" : false,
|
||||
"registerportal": true
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"default": {
|
||||
"name": "default",
|
||||
"connectionString": "Server=localhost;Database=docspace;User ID=dev;Password=dev;Pooling=true;Character Set=utf8;AutoEnlist=false;SSL Mode=none;AllowPublicKeyRetrieval=True;ConnectionReset=false",
|
||||
"providerName": "MySql.Data.MySqlClient"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"id": -3
|
||||
},
|
||||
"max-attempts-count" : 10
|
||||
}
|
@ -1,49 +1,49 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Debug",
|
||||
"System": "Information",
|
||||
"Microsoft": "Information"
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"default": {
|
||||
"name": "default",
|
||||
"connectionString": "Server=172.18.0.2;Port=3306;Database=docspace;User ID=onlyoffice_user;Password=onlyoffice_pass;Pooling=true;Character Set=utf8;AutoEnlist=false;SSL Mode=none;ConnectionReset=false",
|
||||
"providerName": "MySql.Data.MySqlClient"
|
||||
}
|
||||
},
|
||||
"core": {
|
||||
"base-domain": "localhost",
|
||||
"machinekey": "1VVAepxpW8f7",
|
||||
"products": {
|
||||
"folder": "../../products",
|
||||
"subfolder": "server"
|
||||
},
|
||||
"notify": {
|
||||
"postman": "services"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"docservice": {
|
||||
"secret" : {
|
||||
"value": "SQyTqextlJFq",
|
||||
"header": "AuthorizationJwt"
|
||||
},
|
||||
"url": {
|
||||
"public": "/ds-vpath/",
|
||||
"internal": "http://172.18.0.6/",
|
||||
"portal": "https://dotnet.onlyoffice.com:8093/"
|
||||
}
|
||||
},
|
||||
"ffmpeg" :
|
||||
{
|
||||
"value": "ffmpeg",
|
||||
"exts": [ "avi", "mpeg", "mpg", "wmv" ]
|
||||
},
|
||||
"viewed-media": [ ".aac",".flac",".m4a",".mp3",".oga",".ogg",".wav",".f4v",".m4v",".mov",".mp4",".ogv",".webm",".avi" ],
|
||||
"thirdparty": {
|
||||
"enable": [ "box", "dropboxv2", "docusign", "google", "onedrive", "nextcloud", "owncloud", "webdav", "kdrive", "yandex" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Debug",
|
||||
"System": "Information",
|
||||
"Microsoft": "Information"
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"default": {
|
||||
"name": "default",
|
||||
"connectionString": "Server=172.18.0.2;Port=3306;Database=docspace;User ID=onlyoffice_user;Password=onlyoffice_pass;Pooling=true;Character Set=utf8;AutoEnlist=false;SSL Mode=none;ConnectionReset=false",
|
||||
"providerName": "MySql.Data.MySqlClient"
|
||||
}
|
||||
},
|
||||
"core": {
|
||||
"base-domain": "localhost",
|
||||
"machinekey": "1VVAepxpW8f7",
|
||||
"products": {
|
||||
"folder": "../../products",
|
||||
"subfolder": "server"
|
||||
},
|
||||
"notify": {
|
||||
"postman": "services"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"docservice": {
|
||||
"secret" : {
|
||||
"value": "SQyTqextlJFq",
|
||||
"header": "AuthorizationJwt"
|
||||
},
|
||||
"url": {
|
||||
"public": "/ds-vpath/",
|
||||
"internal": "http://172.18.0.6/",
|
||||
"portal": "https://dotnet.onlyoffice.com:8093/"
|
||||
}
|
||||
},
|
||||
"ffmpeg" :
|
||||
{
|
||||
"value": "ffmpeg",
|
||||
"exts": [ "avi", "mpeg", "mpg", "wmv" ]
|
||||
},
|
||||
"viewed-media": [ ".aac",".flac",".m4a",".mp3",".oga",".ogg",".wav",".f4v",".m4v",".mov",".mp4",".ogv",".webm",".avi" ],
|
||||
"thirdparty": {
|
||||
"enable": [ "box", "dropboxv2", "docusign", "google", "onedrive", "nextcloud", "owncloud", "webdav", "kdrive", "yandex" ]
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,12 +1,12 @@
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"type": "ASC.Data.Encryption.Crypt, ASC.Data.Encryption",
|
||||
"services": [
|
||||
{
|
||||
"type": "ASC.Core.Encryption.ICrypt, ASC.Core.Common"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"type": "ASC.Data.Encryption.Crypt, ASC.Data.Encryption",
|
||||
"services": [
|
||||
{
|
||||
"type": "ASC.Core.Encryption.ICrypt, ASC.Core.Common"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,22 +1,22 @@
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"type": "ASC.People.PeopleProduct, ASC.People",
|
||||
"services": [
|
||||
{
|
||||
"type": "ASC.Web.Core.IWebItem, ASC.Web.Core"
|
||||
}
|
||||
],
|
||||
"instanceScope": "InstancePerLifetimeScope"
|
||||
},
|
||||
{
|
||||
"type": "ASC.Files.ApiProductEntryPoint, ASC.Files",
|
||||
"services": [
|
||||
{
|
||||
"type": "ASC.Web.Core.IWebItem, ASC.Web.Core"
|
||||
}
|
||||
],
|
||||
"instanceScope": "InstancePerLifetimeScope"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"type": "ASC.People.PeopleProduct, ASC.People",
|
||||
"services": [
|
||||
{
|
||||
"type": "ASC.Web.Core.IWebItem, ASC.Web.Core"
|
||||
}
|
||||
],
|
||||
"instanceScope": "InstancePerLifetimeScope"
|
||||
},
|
||||
{
|
||||
"type": "ASC.Files.ApiProductEntryPoint, ASC.Files",
|
||||
"services": [
|
||||
{
|
||||
"type": "ASC.Web.Core.IWebItem, ASC.Web.Core"
|
||||
}
|
||||
],
|
||||
"instanceScope": "InstancePerLifetimeScope"
|
||||
}
|
||||
]
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"kafka": {
|
||||
"BootstrapServers": "localhost:9092"
|
||||
}
|
||||
{
|
||||
"kafka": {
|
||||
"BootstrapServers": "localhost:9092"
|
||||
}
|
||||
}
|
@ -1,61 +1,61 @@
|
||||
function batchJSON(request) {
|
||||
batch(request, { serialize: JSON.stringify, contentType: "application/json; charset=utf-8"});
|
||||
}
|
||||
|
||||
function batchXML(request) {
|
||||
batch(request, { serialize: OBJtoXML, contentType: "application/xml; charset=utf-8"});
|
||||
}
|
||||
|
||||
function batch(request, serialiazer) {
|
||||
var body = JSON.parse(request.requestBody).batch;
|
||||
var n = 0;
|
||||
var result = {
|
||||
count: body.length,
|
||||
status: 0,
|
||||
statusCode: 200,
|
||||
response: []
|
||||
};
|
||||
|
||||
function done(i, reply) {
|
||||
result.response[i] = {
|
||||
status: reply.status,
|
||||
data: reply.responseBody
|
||||
};
|
||||
|
||||
if (++n == body.length) {
|
||||
var response = serialiazer.serialize(result);
|
||||
request.status = 200;
|
||||
request.headersOut['Content-Type'] = serialiazer.contentType;
|
||||
request.headersOut['Content-Length'] = response.length;
|
||||
request.sendHeader();
|
||||
request.send(response);
|
||||
request.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for(var i in body) {
|
||||
request.subrequest(body[i].RelativeUrl, { method : body[i].RelativeMethod }, done.bind(null, i));
|
||||
}
|
||||
}
|
||||
|
||||
function OBJtoXML(obj) {
|
||||
var xml = '';
|
||||
for (var prop in obj) {
|
||||
xml += obj[prop] instanceof Array ? '' : "<" + prop + ">";
|
||||
if (obj[prop] instanceof Array) {
|
||||
for (var array in obj[prop]) {
|
||||
xml += "<" + prop + ">";
|
||||
xml += OBJtoXML(new Object(obj[prop][array]));
|
||||
xml += "</" + prop + ">";
|
||||
}
|
||||
} else if (typeof obj[prop] == "object") {
|
||||
xml += OBJtoXML(new Object(obj[prop]));
|
||||
} else {
|
||||
xml += obj[prop];
|
||||
}
|
||||
xml += obj[prop] instanceof Array ? '' : "</" + prop + ">";
|
||||
}
|
||||
var xml = xml.replace(/<\/?[0-9]{1,}>/g, '');
|
||||
return xml
|
||||
function batchJSON(request) {
|
||||
batch(request, { serialize: JSON.stringify, contentType: "application/json; charset=utf-8"});
|
||||
}
|
||||
|
||||
function batchXML(request) {
|
||||
batch(request, { serialize: OBJtoXML, contentType: "application/xml; charset=utf-8"});
|
||||
}
|
||||
|
||||
function batch(request, serialiazer) {
|
||||
var body = JSON.parse(request.requestBody).batch;
|
||||
var n = 0;
|
||||
var result = {
|
||||
count: body.length,
|
||||
status: 0,
|
||||
statusCode: 200,
|
||||
response: []
|
||||
};
|
||||
|
||||
function done(i, reply) {
|
||||
result.response[i] = {
|
||||
status: reply.status,
|
||||
data: reply.responseBody
|
||||
};
|
||||
|
||||
if (++n == body.length) {
|
||||
var response = serialiazer.serialize(result);
|
||||
request.status = 200;
|
||||
request.headersOut['Content-Type'] = serialiazer.contentType;
|
||||
request.headersOut['Content-Length'] = response.length;
|
||||
request.sendHeader();
|
||||
request.send(response);
|
||||
request.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for(var i in body) {
|
||||
request.subrequest(body[i].RelativeUrl, { method : body[i].RelativeMethod }, done.bind(null, i));
|
||||
}
|
||||
}
|
||||
|
||||
function OBJtoXML(obj) {
|
||||
var xml = '';
|
||||
for (var prop in obj) {
|
||||
xml += obj[prop] instanceof Array ? '' : "<" + prop + ">";
|
||||
if (obj[prop] instanceof Array) {
|
||||
for (var array in obj[prop]) {
|
||||
xml += "<" + prop + ">";
|
||||
xml += OBJtoXML(new Object(obj[prop][array]));
|
||||
xml += "</" + prop + ">";
|
||||
}
|
||||
} else if (typeof obj[prop] == "object") {
|
||||
xml += OBJtoXML(new Object(obj[prop]));
|
||||
} else {
|
||||
xml += obj[prop];
|
||||
}
|
||||
xml += obj[prop] instanceof Array ? '' : "</" + prop + ">";
|
||||
}
|
||||
var xml = xml.replace(/<\/?[0-9]{1,}>/g, '');
|
||||
return xml
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
map $document_root $public_root {
|
||||
default /var/www/public/;
|
||||
map $document_root $public_root {
|
||||
default /var/www/public/;
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
server {
|
||||
listen 5001;
|
||||
root /var/www/client;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html =404;
|
||||
}
|
||||
server {
|
||||
listen 5001;
|
||||
root /var/www/client;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html =404;
|
||||
}
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
server {
|
||||
listen 5011;
|
||||
root /var/www/login;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html =404;
|
||||
}
|
||||
server {
|
||||
listen 5011;
|
||||
root /var/www/login;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html =404;
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
server {
|
||||
listen 8081;
|
||||
root /var/www/story;
|
||||
index index.html;
|
||||
server {
|
||||
listen 8081;
|
||||
root /var/www/story;
|
||||
index index.html;
|
||||
}
|
@ -1,320 +1,320 @@
|
||||
map $http_host $this_host {
|
||||
"" $host;
|
||||
default $http_host;
|
||||
}
|
||||
|
||||
map $http_cloudfront_forwarded_proto $cloudfront_forwarded_proto {
|
||||
default $http_cloudfront_forwarded_proto;
|
||||
"" $scheme;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
|
||||
default $http_x_forwarded_proto;
|
||||
"" $cloudfront_forwarded_proto;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_port $proxy_x_forwarded_port {
|
||||
default $http_x_forwarded_port;
|
||||
'' $server_port;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_host $proxy_x_forwarded_host {
|
||||
default $http_x_forwarded_host;
|
||||
"" $this_host;
|
||||
}
|
||||
|
||||
map $scheme $proxy_x_forwarded_ssl {
|
||||
default off;
|
||||
https on;
|
||||
}
|
||||
|
||||
map $http_upgrade $proxy_connection {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
map $uri $basename {
|
||||
~/(?<captured_basename>[^/]*)$ $captured_basename;
|
||||
}
|
||||
|
||||
map $request_uri $header_x_frame_options {
|
||||
~*^/(favicon\.ico|products\/files\/share|products\/files\/saveas|products\/files\/filechoice|products\/files\/doceditor|thirdparty\/plugin) "";
|
||||
default "SAMEORIGIN";
|
||||
}
|
||||
|
||||
map $request_uri $cache_control {
|
||||
default "no-cache, no-store, no-transform";
|
||||
~*\/(filehandler\.ashx\?action=(thumb|preview))|\/(storage\/room_logos\/root\/|storage\/userPhotos\/root\/) "must-revalidate, no-transform, immutable, max-age=31536000";
|
||||
~*\/(api\/2\.0.*|storage|login\.ashx|filehandler\.ashx|ChunkedUploader.ashx|ThirdPartyAppHandler|apisystem|sh|remoteEntry\.js|debuginfo\.md|static\/scripts.*) "no-cache, no-store, no-transform";
|
||||
~*\/(images|favicon.ico.*)|\.(js|woff|woff2|css)|(locales.*\.json) "must-revalidate, no-transform, immutable, max-age=31536000";
|
||||
}
|
||||
|
||||
include /etc/nginx/includes/onlyoffice-*.conf;
|
||||
|
||||
server_names_hash_bucket_size 128;
|
||||
|
||||
server {
|
||||
listen 8092;
|
||||
|
||||
add_header Referrer-Policy "same-origin";
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
add_header X-Frame-Options $header_x_frame_options;
|
||||
add_header Cache-Control $cache_control;
|
||||
root $public_root;
|
||||
etag on;
|
||||
|
||||
large_client_header_buffers 4 16k;
|
||||
client_max_body_size 4G;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
|
||||
|
||||
fastcgi_read_timeout 600;
|
||||
fastcgi_send_timeout 600;
|
||||
fastcgi_keep_conn on;
|
||||
fastcgi_intercept_errors on;
|
||||
|
||||
include fastcgi_params;
|
||||
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO "";
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $this_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
|
||||
proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
|
||||
proxy_set_header X-Forwarded-Host $proxy_x_forwarded_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $proxy_connection;
|
||||
proxy_set_header Proxy "";
|
||||
|
||||
set $csp "";
|
||||
access_by_lua '
|
||||
if ngx.req.get_method() == "GET" then
|
||||
local key = string.format("csp:%s",ngx.var.host)
|
||||
local redis = require "resty.redis"
|
||||
local red = redis:new()
|
||||
local redis_host = "127.0.0.1"
|
||||
local redis_port = 6379
|
||||
|
||||
red:set_timeout(1000) -- 1 second
|
||||
|
||||
local ok, err = red:connect(redis_host, redis_port)
|
||||
if not ok then
|
||||
ngx.log(ngx.ERR, "failed to connect to redis: ", err)
|
||||
end
|
||||
|
||||
local csp, err = red:hget(key, "data")
|
||||
|
||||
if csp == ngx.null then
|
||||
ngx.log(ngx.ERR, "failed to get redis key: ", err)
|
||||
else
|
||||
ngx.header.Content_Security_Policy = csp
|
||||
end
|
||||
end
|
||||
';
|
||||
|
||||
location ~* ^/ds-vpath/ {
|
||||
rewrite /ds-vpath/(.*) /$1 break;
|
||||
|
||||
proxy_pass http://172.18.0.4:80;
|
||||
proxy_redirect off;
|
||||
|
||||
client_max_body_size 100m;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $proxy_connection;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $proxy_x_forwarded_host/ds-vpath;
|
||||
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
|
||||
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:5001;
|
||||
location ~* /(manifest.json|sw.js|appIcon(.)*\.png|icon.svg|bg-error.png|favicon.ico|debuginfo.md) {
|
||||
try_files /$basename /index.html =404;
|
||||
}
|
||||
|
||||
|
||||
location ~* /static/css/ {
|
||||
try_files /css/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/fonts/(?<content>[^/]+) {
|
||||
try_files /fonts/$content/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/offline/ {
|
||||
try_files /offline/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /thirdparty/ {
|
||||
try_files /thirdparty/third-party.html /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/locales/(?<content>[^/]+) {
|
||||
try_files /locales/$content/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/scripts/ {
|
||||
try_files /scripts/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/plugins/ {
|
||||
try_files /plugins/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/images/(.*)$ {
|
||||
try_files /images/$1 /index.html =404;
|
||||
}
|
||||
}
|
||||
|
||||
location /doceditor {
|
||||
proxy_pass http://127.0.0.1:5013;
|
||||
proxy_redirect off;
|
||||
|
||||
location ~* /static/favicon.ico {
|
||||
try_files /$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/images/(.*)$ {
|
||||
try_files /images/$1 /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/css/ {
|
||||
try_files /css/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/fonts/(?<content>[^/]+) {
|
||||
try_files /fonts/$content/$basename /index.html =404;
|
||||
}
|
||||
}
|
||||
|
||||
location /login {
|
||||
proxy_pass http://127.0.0.1:5011;
|
||||
proxy_redirect off;
|
||||
|
||||
location ~* /static/favicon.ico {
|
||||
try_files /$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/images/(.*)$ {
|
||||
try_files /images/$1 /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/css/ {
|
||||
try_files /css/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/fonts/(?<content>[^/]+) {
|
||||
try_files /fonts/$content/$basename /index.html =404;
|
||||
}
|
||||
}
|
||||
|
||||
location /sockjs-node {
|
||||
proxy_pass http://127.0.0.1:5001;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /api/2.0 {
|
||||
location ~* /(files|privacyroom) {
|
||||
proxy_pass http://127.0.0.1:5007;
|
||||
}
|
||||
|
||||
location ~* /(people|group) {
|
||||
proxy_pass http://127.0.0.1:5004;
|
||||
}
|
||||
|
||||
location ~* /(authentication|modules|portal|security|settings|smtpsettings|capabilities|thirdparty|encryption|feed) {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
|
||||
location ~* portal/(.*)(backup|restore)(.*) {
|
||||
rewrite (.*)/portal/(.*) $1/backup/$2 break;
|
||||
proxy_redirect off;
|
||||
proxy_pass http://127.0.0.1:5012;
|
||||
}
|
||||
|
||||
location ~* authentication/register(.*) {
|
||||
rewrite (.*)/authentication/register(.*) $1/people/register$2 break;
|
||||
proxy_redirect off;
|
||||
proxy_pass http://127.0.0.1:5004;
|
||||
}
|
||||
}
|
||||
|
||||
location ~* /backup {
|
||||
proxy_pass http://127.0.0.1:5012;
|
||||
}
|
||||
|
||||
location ~* /plugins {
|
||||
proxy_pass http://127.0.0.1:5014;
|
||||
}
|
||||
|
||||
location ~* /migration {
|
||||
proxy_pass http://127.0.0.1:5034;
|
||||
}
|
||||
}
|
||||
|
||||
location /sso {
|
||||
rewrite sso/(.*) /$1 break;
|
||||
proxy_pass http://127.0.0.1:9834;
|
||||
}
|
||||
location ~* /(ssologin.ashx|login.ashx|storage) {
|
||||
proxy_pass http://127.0.0.1:5003;
|
||||
}
|
||||
|
||||
location /socket.io/ {
|
||||
proxy_pass http://127.0.0.1:9899;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /backupFileUpload.ashx {
|
||||
proxy_pass http://127.0.0.1:5012;
|
||||
}
|
||||
|
||||
location /logoUploader.ashx {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
}
|
||||
|
||||
location /payment.ashx {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
}
|
||||
|
||||
location /ThirdPartyApp {
|
||||
proxy_pass http://127.0.0.1:5007;
|
||||
}
|
||||
|
||||
location ~* /filehandler.ashx {
|
||||
proxy_pass http://127.0.0.1:5007;
|
||||
}
|
||||
|
||||
location /ChunkedUploader.ashx {
|
||||
proxy_pass http://127.0.0.1:5007;
|
||||
}
|
||||
|
||||
location /apisystem {
|
||||
rewrite apisystem/(.*) /$1 break;
|
||||
proxy_pass http://127.0.0.1:5010;
|
||||
}
|
||||
|
||||
location /apicache {
|
||||
rewrite apicache/(.*) /$1 break;
|
||||
proxy_pass http://127.0.0.1:5100;
|
||||
}
|
||||
|
||||
location /sh {
|
||||
rewrite sh/(.*) /$1 break;
|
||||
proxy_pass http://127.0.0.1:9999;
|
||||
}
|
||||
|
||||
location /healthchecks {
|
||||
rewrite /healthchecks/(.*)$ /$1 break;
|
||||
proxy_pass http://127.0.0.1:5033;
|
||||
}
|
||||
}
|
||||
map $http_host $this_host {
|
||||
"" $host;
|
||||
default $http_host;
|
||||
}
|
||||
|
||||
map $http_cloudfront_forwarded_proto $cloudfront_forwarded_proto {
|
||||
default $http_cloudfront_forwarded_proto;
|
||||
"" $scheme;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
|
||||
default $http_x_forwarded_proto;
|
||||
"" $cloudfront_forwarded_proto;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_port $proxy_x_forwarded_port {
|
||||
default $http_x_forwarded_port;
|
||||
'' $server_port;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_host $proxy_x_forwarded_host {
|
||||
default $http_x_forwarded_host;
|
||||
"" $this_host;
|
||||
}
|
||||
|
||||
map $scheme $proxy_x_forwarded_ssl {
|
||||
default off;
|
||||
https on;
|
||||
}
|
||||
|
||||
map $http_upgrade $proxy_connection {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
map $uri $basename {
|
||||
~/(?<captured_basename>[^/]*)$ $captured_basename;
|
||||
}
|
||||
|
||||
map $request_uri $header_x_frame_options {
|
||||
~*^/(favicon\.ico|products\/files\/share|products\/files\/saveas|products\/files\/filechoice|products\/files\/doceditor|thirdparty\/plugin) "";
|
||||
default "SAMEORIGIN";
|
||||
}
|
||||
|
||||
map $request_uri $cache_control {
|
||||
default "no-cache, no-store, no-transform";
|
||||
~*\/(filehandler\.ashx\?action=(thumb|preview))|\/(storage\/room_logos\/root\/|storage\/userPhotos\/root\/) "must-revalidate, no-transform, immutable, max-age=31536000";
|
||||
~*\/(api\/2\.0.*|storage|login\.ashx|filehandler\.ashx|ChunkedUploader.ashx|ThirdPartyAppHandler|apisystem|sh|remoteEntry\.js|debuginfo\.md|static\/scripts.*) "no-cache, no-store, no-transform";
|
||||
~*\/(images|favicon.ico.*)|\.(js|woff|woff2|css)|(locales.*\.json) "must-revalidate, no-transform, immutable, max-age=31536000";
|
||||
}
|
||||
|
||||
include /etc/nginx/includes/onlyoffice-*.conf;
|
||||
|
||||
server_names_hash_bucket_size 128;
|
||||
|
||||
server {
|
||||
listen 8092;
|
||||
|
||||
add_header Referrer-Policy "same-origin";
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
add_header X-Frame-Options $header_x_frame_options;
|
||||
add_header Cache-Control $cache_control;
|
||||
root $public_root;
|
||||
etag on;
|
||||
|
||||
large_client_header_buffers 4 16k;
|
||||
client_max_body_size 4G;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
|
||||
|
||||
fastcgi_read_timeout 600;
|
||||
fastcgi_send_timeout 600;
|
||||
fastcgi_keep_conn on;
|
||||
fastcgi_intercept_errors on;
|
||||
|
||||
include fastcgi_params;
|
||||
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO "";
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $this_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
|
||||
proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
|
||||
proxy_set_header X-Forwarded-Host $proxy_x_forwarded_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $proxy_connection;
|
||||
proxy_set_header Proxy "";
|
||||
|
||||
set $csp "";
|
||||
access_by_lua '
|
||||
if ngx.req.get_method() == "GET" then
|
||||
local key = string.format("csp:%s",ngx.var.host)
|
||||
local redis = require "resty.redis"
|
||||
local red = redis:new()
|
||||
local redis_host = "127.0.0.1"
|
||||
local redis_port = 6379
|
||||
|
||||
red:set_timeout(1000) -- 1 second
|
||||
|
||||
local ok, err = red:connect(redis_host, redis_port)
|
||||
if not ok then
|
||||
ngx.log(ngx.ERR, "failed to connect to redis: ", err)
|
||||
end
|
||||
|
||||
local csp, err = red:hget(key, "data")
|
||||
|
||||
if csp == ngx.null then
|
||||
ngx.log(ngx.ERR, "failed to get redis key: ", err)
|
||||
else
|
||||
ngx.header.Content_Security_Policy = csp
|
||||
end
|
||||
end
|
||||
';
|
||||
|
||||
location ~* ^/ds-vpath/ {
|
||||
rewrite /ds-vpath/(.*) /$1 break;
|
||||
|
||||
proxy_pass http://172.18.0.4:80;
|
||||
proxy_redirect off;
|
||||
|
||||
client_max_body_size 100m;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $proxy_connection;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $proxy_x_forwarded_host/ds-vpath;
|
||||
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
|
||||
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:5001;
|
||||
location ~* /(manifest.json|sw.js|appIcon(.)*\.png|icon.svg|bg-error.png|favicon.ico|debuginfo.md) {
|
||||
try_files /$basename /index.html =404;
|
||||
}
|
||||
|
||||
|
||||
location ~* /static/css/ {
|
||||
try_files /css/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/fonts/(?<content>[^/]+) {
|
||||
try_files /fonts/$content/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/offline/ {
|
||||
try_files /offline/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /thirdparty/ {
|
||||
try_files /thirdparty/third-party.html /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/locales/(?<content>[^/]+) {
|
||||
try_files /locales/$content/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/scripts/ {
|
||||
try_files /scripts/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/plugins/ {
|
||||
try_files /plugins/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/images/(.*)$ {
|
||||
try_files /images/$1 /index.html =404;
|
||||
}
|
||||
}
|
||||
|
||||
location /doceditor {
|
||||
proxy_pass http://127.0.0.1:5013;
|
||||
proxy_redirect off;
|
||||
|
||||
location ~* /static/favicon.ico {
|
||||
try_files /$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/images/(.*)$ {
|
||||
try_files /images/$1 /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/css/ {
|
||||
try_files /css/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/fonts/(?<content>[^/]+) {
|
||||
try_files /fonts/$content/$basename /index.html =404;
|
||||
}
|
||||
}
|
||||
|
||||
location /login {
|
||||
proxy_pass http://127.0.0.1:5011;
|
||||
proxy_redirect off;
|
||||
|
||||
location ~* /static/favicon.ico {
|
||||
try_files /$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/images/(.*)$ {
|
||||
try_files /images/$1 /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/css/ {
|
||||
try_files /css/$basename /index.html =404;
|
||||
}
|
||||
|
||||
location ~* /static/fonts/(?<content>[^/]+) {
|
||||
try_files /fonts/$content/$basename /index.html =404;
|
||||
}
|
||||
}
|
||||
|
||||
location /sockjs-node {
|
||||
proxy_pass http://127.0.0.1:5001;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /api/2.0 {
|
||||
location ~* /(files|privacyroom) {
|
||||
proxy_pass http://127.0.0.1:5007;
|
||||
}
|
||||
|
||||
location ~* /(people|group) {
|
||||
proxy_pass http://127.0.0.1:5004;
|
||||
}
|
||||
|
||||
location ~* /(authentication|modules|portal|security|settings|smtpsettings|capabilities|thirdparty|encryption|feed) {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
|
||||
location ~* portal/(.*)(backup|restore)(.*) {
|
||||
rewrite (.*)/portal/(.*) $1/backup/$2 break;
|
||||
proxy_redirect off;
|
||||
proxy_pass http://127.0.0.1:5012;
|
||||
}
|
||||
|
||||
location ~* authentication/register(.*) {
|
||||
rewrite (.*)/authentication/register(.*) $1/people/register$2 break;
|
||||
proxy_redirect off;
|
||||
proxy_pass http://127.0.0.1:5004;
|
||||
}
|
||||
}
|
||||
|
||||
location ~* /backup {
|
||||
proxy_pass http://127.0.0.1:5012;
|
||||
}
|
||||
|
||||
location ~* /plugins {
|
||||
proxy_pass http://127.0.0.1:5014;
|
||||
}
|
||||
|
||||
location ~* /migration {
|
||||
proxy_pass http://127.0.0.1:5034;
|
||||
}
|
||||
}
|
||||
|
||||
location /sso {
|
||||
rewrite sso/(.*) /$1 break;
|
||||
proxy_pass http://127.0.0.1:9834;
|
||||
}
|
||||
location ~* /(ssologin.ashx|login.ashx|storage) {
|
||||
proxy_pass http://127.0.0.1:5003;
|
||||
}
|
||||
|
||||
location /socket.io/ {
|
||||
proxy_pass http://127.0.0.1:9899;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /backupFileUpload.ashx {
|
||||
proxy_pass http://127.0.0.1:5012;
|
||||
}
|
||||
|
||||
location /logoUploader.ashx {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
}
|
||||
|
||||
location /payment.ashx {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
}
|
||||
|
||||
location /ThirdPartyApp {
|
||||
proxy_pass http://127.0.0.1:5007;
|
||||
}
|
||||
|
||||
location ~* /filehandler.ashx {
|
||||
proxy_pass http://127.0.0.1:5007;
|
||||
}
|
||||
|
||||
location /ChunkedUploader.ashx {
|
||||
proxy_pass http://127.0.0.1:5007;
|
||||
}
|
||||
|
||||
location /apisystem {
|
||||
rewrite apisystem/(.*) /$1 break;
|
||||
proxy_pass http://127.0.0.1:5010;
|
||||
}
|
||||
|
||||
location /apicache {
|
||||
rewrite apicache/(.*) /$1 break;
|
||||
proxy_pass http://127.0.0.1:5100;
|
||||
}
|
||||
|
||||
location /sh {
|
||||
rewrite sh/(.*) /$1 break;
|
||||
proxy_pass http://127.0.0.1:9999;
|
||||
}
|
||||
|
||||
location /healthchecks {
|
||||
rewrite /healthchecks/(.*)$ /$1 break;
|
||||
proxy_pass http://127.0.0.1:5033;
|
||||
}
|
||||
}
|
@ -1,57 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
throwConfigExceptions="true"
|
||||
autoReload="true">
|
||||
<extensions>
|
||||
<add assembly="NLog.Web.AspNetCore"/>
|
||||
<add assembly="NLog.AWS.Logger" />
|
||||
</extensions>
|
||||
|
||||
<variable name="dir" value="..\Logs\"/>
|
||||
<variable name="name" value="web"/>
|
||||
|
||||
<targets async="true">
|
||||
<default-target-parameters type="File" maxArchiveDays="30" archiveNumbering="DateAndSequence" archiveEvery="Day" enableArchiveFileCompression="true" archiveAboveSize="52428800" archiveDateFormat="MM-dd" layout="${date:format=yyyy-MM-dd HH\:mm\:ss,fff} ${level:uppercase=true} [${threadid}] ${logger} - ${message} ${exception:format=ToString}"/>
|
||||
<target name="web" type="File" fileName="${var:dir}${var:name}.log" />
|
||||
<target name="sql" type="File" fileName="${var:dir}${var:name}.sql.log" layout="${date:universalTime=true:format=yyyy-MM-dd HH\:mm\:ss,fff}|${threadid}|${event-properties:item=elapsed}|${replace:inner=${event-properties:item=commandText}:searchFor=\\r\\n|\\s:replaceWith= :regex=true}|${event-properties:item=parameters}"/>
|
||||
<target name="ownFile-web" type="File" fileName="${var:dir}${var:name}.asp.log" layout="${longdate}|${event-properties:item=EventId_Id}|${uppercase:${level}}|${logger}|${message} ${exception:format=tostring}|url: ${aspnet-request-url}|action: ${aspnet-mvc-action}" />
|
||||
<target type="AWSTarget" name="aws" logGroup="/asc/docspace/cluster/cluster_name/general" region="us-east-1" LogStreamNamePrefix="${hostname} - ${application-context}">
|
||||
<layout xsi:type="JsonLayout" includeEventProperties="true" includeScopeProperties="true" maxRecursionLimit="2">
|
||||
<attribute name="date" layout="${date:format=yyyy-MM-dd HH\:mm\:ss,fff}" />
|
||||
<attribute name="level" layout="${level:upperCase=true}"/>
|
||||
<attribute name="instanceId" layout="${hostname}"/>
|
||||
<attribute name="applicationContext" layout="${application-context}"/>
|
||||
<attribute name="sourceContext" layout="${logger}"/>
|
||||
<attribute name="threadId" layout="${threadid}"/>
|
||||
<attribute name="message" layout="${message}" />
|
||||
<attribute name="exception" layout="${exception:format=ToString}" />
|
||||
</layout>
|
||||
</target>
|
||||
<target type="AWSTarget" name="aws_sql" logGroup="/asc/docspace/cluster/cluster_name/sql" region="us-east-1" LogStreamNamePrefix="${hostname} - ${application-context}">
|
||||
<layout xsi:type="JsonLayout" includeEventProperties="true" includeScopeProperties="true">
|
||||
<attribute name="date" layout="${date:universalTime=true:format=yyyy-MM-dd HH\:mm\:ss,fff}" />
|
||||
<attribute name="instanceId" layout="${hostname}"/>
|
||||
<attribute name="applicationContext" layout="${application-context}"/>
|
||||
<attribute name="sourceContext" layout="${logger}"/>
|
||||
<attribute name="threadId" layout="${threadid}"/>
|
||||
<attribute name="elapsed" layout="${event-properties:item=elapsed}"/>
|
||||
<attribute name="commandText" layout="${replace:inner=${event-properties:item=commandText}:searchFor=\\r\\n|\\s:replaceWith= :regex=true}" />
|
||||
</layout>
|
||||
</target>
|
||||
</targets>
|
||||
<rules>
|
||||
<logger name="ASC.SQL" minlevel="Debug" writeTo="sql" final="true" />
|
||||
<logger name="ASC*" minlevel="Debug" writeTo="web">
|
||||
<filters defaultAction="Log">
|
||||
<when condition="equals('${scope-property:RequestPath}', '/health')" action="Ignore" />
|
||||
</filters>
|
||||
</logger>
|
||||
<logger name="Microsoft.AspNetCore.Hosting.Diagnostics" minlevel="Debug" writeTo="ownFile-web" final="true">
|
||||
<filters defaultAction="Log">
|
||||
<when condition="equals('${scope-property:RequestPath}', '/health')" action="Ignore" />
|
||||
</filters>
|
||||
</logger>
|
||||
<logger name="Microsoft.*" maxlevel="Off" final="true" />
|
||||
</rules>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
throwConfigExceptions="true"
|
||||
autoReload="true">
|
||||
<extensions>
|
||||
<add assembly="NLog.Web.AspNetCore"/>
|
||||
<add assembly="NLog.AWS.Logger" />
|
||||
</extensions>
|
||||
|
||||
<variable name="dir" value="..\Logs\"/>
|
||||
<variable name="name" value="web"/>
|
||||
|
||||
<targets async="true">
|
||||
<default-target-parameters type="File" maxArchiveDays="30" archiveNumbering="DateAndSequence" archiveEvery="Day" enableArchiveFileCompression="true" archiveAboveSize="52428800" archiveDateFormat="MM-dd" layout="${date:format=yyyy-MM-dd HH\:mm\:ss,fff} ${level:uppercase=true} [${threadid}] ${logger} - ${message} ${exception:format=ToString}"/>
|
||||
<target name="web" type="File" fileName="${var:dir}${var:name}.log" />
|
||||
<target name="sql" type="File" fileName="${var:dir}${var:name}.sql.log" layout="${date:universalTime=true:format=yyyy-MM-dd HH\:mm\:ss,fff}|${threadid}|${event-properties:item=elapsed}|${replace:inner=${event-properties:item=commandText}:searchFor=\\r\\n|\\s:replaceWith= :regex=true}|${event-properties:item=parameters}"/>
|
||||
<target name="ownFile-web" type="File" fileName="${var:dir}${var:name}.asp.log" layout="${longdate}|${event-properties:item=EventId_Id}|${uppercase:${level}}|${logger}|${message} ${exception:format=tostring}|url: ${aspnet-request-url}|action: ${aspnet-mvc-action}" />
|
||||
<target type="AWSTarget" name="aws" logGroup="/asc/docspace/cluster/cluster_name/general" region="us-east-1" LogStreamNamePrefix="${hostname} - ${application-context}">
|
||||
<layout xsi:type="JsonLayout" includeEventProperties="true" includeScopeProperties="true" maxRecursionLimit="2">
|
||||
<attribute name="date" layout="${date:format=yyyy-MM-dd HH\:mm\:ss,fff}" />
|
||||
<attribute name="level" layout="${level:upperCase=true}"/>
|
||||
<attribute name="instanceId" layout="${hostname}"/>
|
||||
<attribute name="applicationContext" layout="${application-context}"/>
|
||||
<attribute name="sourceContext" layout="${logger}"/>
|
||||
<attribute name="threadId" layout="${threadid}"/>
|
||||
<attribute name="message" layout="${message}" />
|
||||
<attribute name="exception" layout="${exception:format=ToString}" />
|
||||
</layout>
|
||||
</target>
|
||||
<target type="AWSTarget" name="aws_sql" logGroup="/asc/docspace/cluster/cluster_name/sql" region="us-east-1" LogStreamNamePrefix="${hostname} - ${application-context}">
|
||||
<layout xsi:type="JsonLayout" includeEventProperties="true" includeScopeProperties="true">
|
||||
<attribute name="date" layout="${date:universalTime=true:format=yyyy-MM-dd HH\:mm\:ss,fff}" />
|
||||
<attribute name="instanceId" layout="${hostname}"/>
|
||||
<attribute name="applicationContext" layout="${application-context}"/>
|
||||
<attribute name="sourceContext" layout="${logger}"/>
|
||||
<attribute name="threadId" layout="${threadid}"/>
|
||||
<attribute name="elapsed" layout="${event-properties:item=elapsed}"/>
|
||||
<attribute name="commandText" layout="${replace:inner=${event-properties:item=commandText}:searchFor=\\r\\n|\\s:replaceWith= :regex=true}" />
|
||||
</layout>
|
||||
</target>
|
||||
</targets>
|
||||
<rules>
|
||||
<logger name="ASC.SQL" minlevel="Debug" writeTo="sql" final="true" />
|
||||
<logger name="ASC*" minlevel="Debug" writeTo="web">
|
||||
<filters defaultAction="Log">
|
||||
<when condition="equals('${scope-property:RequestPath}', '/health')" action="Ignore" />
|
||||
</filters>
|
||||
</logger>
|
||||
<logger name="Microsoft.AspNetCore.Hosting.Diagnostics" minlevel="Debug" writeTo="ownFile-web" final="true">
|
||||
<filters defaultAction="Log">
|
||||
<when condition="equals('${scope-property:RequestPath}', '/health')" action="Ignore" />
|
||||
</filters>
|
||||
</logger>
|
||||
<logger name="Microsoft.*" maxlevel="Off" final="true" />
|
||||
</rules>
|
||||
</nlog>
|
@ -1,26 +1,26 @@
|
||||
{
|
||||
"notify": {
|
||||
"connectionStringName": "default",
|
||||
"storeMessagesDays": 7,
|
||||
"process": {
|
||||
"maxThreads": 2,
|
||||
"bufferSize": 10,
|
||||
"maxAttempts": 10,
|
||||
"attemptsInterval": "0:5:0"
|
||||
},
|
||||
"senders": [
|
||||
{
|
||||
"name": "messanger.sender",
|
||||
"type": "ASC.Core.Notify.Senders.JabberSender, ASC.Core.Common"
|
||||
},
|
||||
{
|
||||
"name": "email.sender",
|
||||
"type": "ASC.Core.Notify.Senders.SmtpSender, ASC.Core.Common",
|
||||
"properties" :
|
||||
{
|
||||
"useCoreSettings" : "true"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"notify": {
|
||||
"connectionStringName": "default",
|
||||
"storeMessagesDays": 7,
|
||||
"process": {
|
||||
"maxThreads": 2,
|
||||
"bufferSize": 10,
|
||||
"maxAttempts": 10,
|
||||
"attemptsInterval": "0:5:0"
|
||||
},
|
||||
"senders": [
|
||||
{
|
||||
"name": "messanger.sender",
|
||||
"type": "ASC.Core.Notify.Senders.JabberSender, ASC.Core.Common"
|
||||
},
|
||||
{
|
||||
"name": "email.sender",
|
||||
"type": "ASC.Core.Notify.Senders.SmtpSender, ASC.Core.Common",
|
||||
"properties" :
|
||||
{
|
||||
"useCoreSettings" : "true"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -1,133 +1,133 @@
|
||||
{
|
||||
"storage": {
|
||||
"appender": [
|
||||
{
|
||||
"name": "generic",
|
||||
"append": "~/"
|
||||
}
|
||||
],
|
||||
"handler": [
|
||||
{
|
||||
"name": "disc",
|
||||
"type": "ASC.Data.Storage.DiscStorage.DiscDataStore, ASC.Data.Storage",
|
||||
"property": [
|
||||
{
|
||||
"name": "$STORAGE_ROOT",
|
||||
"value": "..\\Data\\"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"module": [
|
||||
{
|
||||
"name": "files",
|
||||
"data": "e67be73d-f9ae-4ce1-8fec-1880cb518cb4",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Products\\Files",
|
||||
"expires": "0:16:0",
|
||||
"domain": [
|
||||
{
|
||||
"name": "files_temp",
|
||||
"visible": false,
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"path": "$STORAGE_ROOT\\Products\\Files\\{0}\\temp",
|
||||
"virtualpath": "~/products/community/modules/wiki/data/filestemp",
|
||||
"expires": "0:10:0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "room_logos",
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Products\\Files\\logos\\{0}",
|
||||
"domain": [
|
||||
{
|
||||
"name": "logos_temp",
|
||||
"visible": false,
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Products\\Files\\logos\\{0}\\temp"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "files_template",
|
||||
"visible": false,
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "DocStore",
|
||||
"virtualpath": "~/products/files/docstore",
|
||||
"appendTenantId": false,
|
||||
"public": true,
|
||||
"disableMigrate": true,
|
||||
"disableEncryption": true
|
||||
},
|
||||
{
|
||||
"name": "certs",
|
||||
"visible": "false",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\certs\\",
|
||||
"appendTenantId": false,
|
||||
"disableEncryption": true
|
||||
},
|
||||
{
|
||||
"name": "logo",
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\logo",
|
||||
"virtualpath": "~/studio/{0}/logo",
|
||||
"public": true
|
||||
},
|
||||
{
|
||||
"name": "whitelabel",
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\CoBranding",
|
||||
"virtualpath": "~/studio/{0}/cobranding",
|
||||
"public": true
|
||||
},
|
||||
{
|
||||
"name": "backup",
|
||||
"visible": false,
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\backup",
|
||||
"virtualpath": "~/studio/{0}/backup",
|
||||
"expires": "0:10:0",
|
||||
"disableEncryption": true
|
||||
},
|
||||
{
|
||||
"name": "backup_temp",
|
||||
"visible": false,
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\temp\\backup",
|
||||
"expires": "0:10:0",
|
||||
"disableEncryption": true
|
||||
},
|
||||
{
|
||||
"name": "customnavigation",
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\customnavigation",
|
||||
"virtualpath": "~/studio/{0}/customnavigation"
|
||||
},
|
||||
{
|
||||
"name": "userPhotos",
|
||||
"count": false,
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\userphotos",
|
||||
"virtualpath": "~/studio/{0}/userphotos",
|
||||
"domain": [
|
||||
{
|
||||
"name": "temp",
|
||||
"visible": false,
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\userphotos\\temp",
|
||||
"virtualpath": "~/studio/{0}/userphotos/temp"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
{
|
||||
"storage": {
|
||||
"appender": [
|
||||
{
|
||||
"name": "generic",
|
||||
"append": "~/"
|
||||
}
|
||||
],
|
||||
"handler": [
|
||||
{
|
||||
"name": "disc",
|
||||
"type": "ASC.Data.Storage.DiscStorage.DiscDataStore, ASC.Data.Storage",
|
||||
"property": [
|
||||
{
|
||||
"name": "$STORAGE_ROOT",
|
||||
"value": "..\\Data\\"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"module": [
|
||||
{
|
||||
"name": "files",
|
||||
"data": "e67be73d-f9ae-4ce1-8fec-1880cb518cb4",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Products\\Files",
|
||||
"expires": "0:16:0",
|
||||
"domain": [
|
||||
{
|
||||
"name": "files_temp",
|
||||
"visible": false,
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"path": "$STORAGE_ROOT\\Products\\Files\\{0}\\temp",
|
||||
"virtualpath": "~/products/community/modules/wiki/data/filestemp",
|
||||
"expires": "0:10:0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "room_logos",
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Products\\Files\\logos\\{0}",
|
||||
"domain": [
|
||||
{
|
||||
"name": "logos_temp",
|
||||
"visible": false,
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Products\\Files\\logos\\{0}\\temp"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "files_template",
|
||||
"visible": false,
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "DocStore",
|
||||
"virtualpath": "~/products/files/docstore",
|
||||
"appendTenantId": false,
|
||||
"public": true,
|
||||
"disableMigrate": true,
|
||||
"disableEncryption": true
|
||||
},
|
||||
{
|
||||
"name": "certs",
|
||||
"visible": "false",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\certs\\",
|
||||
"appendTenantId": false,
|
||||
"disableEncryption": true
|
||||
},
|
||||
{
|
||||
"name": "logo",
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\logo",
|
||||
"virtualpath": "~/studio/{0}/logo",
|
||||
"public": true
|
||||
},
|
||||
{
|
||||
"name": "whitelabel",
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\CoBranding",
|
||||
"virtualpath": "~/studio/{0}/cobranding",
|
||||
"public": true
|
||||
},
|
||||
{
|
||||
"name": "backup",
|
||||
"visible": false,
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\backup",
|
||||
"virtualpath": "~/studio/{0}/backup",
|
||||
"expires": "0:10:0",
|
||||
"disableEncryption": true
|
||||
},
|
||||
{
|
||||
"name": "backup_temp",
|
||||
"visible": false,
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\temp\\backup",
|
||||
"expires": "0:10:0",
|
||||
"disableEncryption": true
|
||||
},
|
||||
{
|
||||
"name": "customnavigation",
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\customnavigation",
|
||||
"virtualpath": "~/studio/{0}/customnavigation"
|
||||
},
|
||||
{
|
||||
"name": "userPhotos",
|
||||
"count": false,
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"type": "disc",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\userphotos",
|
||||
"virtualpath": "~/studio/{0}/userphotos",
|
||||
"domain": [
|
||||
{
|
||||
"name": "temp",
|
||||
"visible": false,
|
||||
"data": "00000000-0000-0000-0000-000000000000",
|
||||
"path": "$STORAGE_ROOT\\Studio\\{0}\\userphotos\\temp",
|
||||
"virtualpath": "~/studio/{0}/userphotos/temp"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"thumb": {
|
||||
"path": "../client/"
|
||||
}
|
||||
{
|
||||
"thumb": {
|
||||
"path": "../client/"
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"urlshortener": {
|
||||
"path": "../client/index.js"
|
||||
}
|
||||
{
|
||||
"urlshortener": {
|
||||
"path": "../client/index.js"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user