Skip to main content
Version: 1.1.x

Configuración

Cada módulo de SUDOCU tiene su propia configuración, de las cuales la más importante es la del api-server. Hasta el momento son en total 6 archivos:

API-Server#

{
/**
organismo:
parámetros del organismo donde se lleva adelante la instalación.
**/
"organismo": {
"codigo": 815,
"nombre": "Universidad Nacional de General Sarmiento",
"sigla": "UNGS"
},
/**
servidor:
parámetros de configuración del servidor y de acceso a la instancia:
path:
host:
subdomain:
domain:
port:
seguro: {
habilitado:
}
**/
"servidor": {
"path": "/",
"host": "",
"subdomain": "",
"domain": "",
"port": 8080,
"seguro": {
"habilitado": true,
"certificados": {
"ca": "/etc/ssl/crt/sudocu.ca-bundle",
"cert": "/etc/ssl/crt/sudocu.crt",
"key": "/etc/ssl/crt/sudocu.key"
}
},
"cookies":{
"expires":"1 hours"
},
"multiproceso": {
"habilitado": false,
"instancias": 2
},
"motores": {
"postgres": true,
"mysql": true,
"informix": false
},
"websocket":{
"path": "/socket.io",
"secure": false
},
"firebase": false,
"environment": null
},
"reverse_proxy": {
"seguro": false
},
"debug": {
"SQL": false
},
"seguridad": {
"algoritmo": "AES-256-CTR",
"comentario": "ver listado de algoritmos: openssl list-cipher-algorithms",
"palabra_secreta": "",
"key": "",
"iv": "",
"comentario_codigos": "codigos generados con una herramienta : https://gist.github.com/bnoordhuis/2de2766d3d3a47ebe41aaaec7e8b14df"
},
"auth": {
"providers": {
"basic": {
"user": "",
"challenge": true,
"realm": ""
},
"local": {
"habilitado": true
},
"twitter": {
"habilitado": false,
"consumerKey": "consumerKey",
"consumerSecret": "consumerSecret"
},
"facebook": {
"habilitado": false,
"clientID": "clientID",
"clientSecret": "clientSecret"
},
"google": {
"habilitado": false,
"clientID": "clientID",
"clientSecret": "clientSecret"
},
"saml": {
"identifier": "uniqueIdentifier",
"crearSiNoExiste": false,
"habilitacionAutomatica": false,
"perfilXDefecto": 1,
"claustroXDefecto": "ND",
"habilitado": false,
"entryPoint": ""
}
}
},
"repositorios": {
"documentos": "filesystem",
"adjuntos": "filesystem",
"arai": {
"url_notificacion":"",
"url": "",
"username": "",
"id_instalacion": ""
}
},
"firma": {
"modelo_autorizacion": "sudocu",
"api": "",
"username": "documentos"
},
"filesystem": {
"rootFolder": "/app/sudocu-files/"
},
"ungsxt": {
"host": "",
"port": "5432",
"database": "",
"user": "",
"max": 20,
"idleTimeoutMillis": 30000,
"connectionTimeoutMillis": 2000
},
"nuxeo": {
"api": "",
"admin": {
"username": ""
}
},
"token": {
"algorithm": "",
"secret": ""
},
"carpetas": {
"archivos": "/tmp"
},
"alertas": {
"traceinconsole": false,
"rawinmessage": false,
"telegram": {
"_comment": "https://www.npmjs.com/package/messaging-api-telegram",
"enabled": false,
"token": "",
"chat_id": ""
},
"email": {
"enabled": false,
"dev": {
"_comment": "https://stackoverflow.com/questions/24098461/nodemailer-gmail-what-exactly-is-a-refresh-token-and-how-do-i-get-one",
"destinatario": "",
"client_id": "",
"client_secret": "",
"refresh_token": "",
"auth": {
"user": ""
}
}
}
},
"email": {
"seguimientos": {
"_comment":"Modo puede ser smtp o gmail",
"modo":"smtp",
"smtp":{
"remitente":"",
"host": "",
"port": "",
"secure": "",
"auth": {
"user": "",
"pass": ""
}
},
"gmail":{
"remitente": "",
"client_id": "",
"client_secret": "",
"refresh_token": "",
"auth": {
"user": ""
}
}
}
},
"redis": {
"host": "",
"port": 6379,
"db": "",
"ttl": 28800,
"options": {
}
},
"firebase_admin": {
"databaseURL": ""
},
"pdf": {
"host": "http://pdf:3000"
},
"blockchain": {
"habilitado": false,
"stampURL": "https://tsaapi-test.bfa.ar/api/tsa/stamp/",
"verifyURL": "https://tsaapi-test.bfa.ar/api/tsa/verify/"
},
"whitelist": [
8080,
8181,
8383,
443
],
"documentos": {
"_comment": "recepcion por vista o por edicion",
"recepcion": "vista",
"google_analytics": {
"habilitado": false,
"id": ""
}
},
"gestion": {
"ver_expedientes_enviados": false
},
"admin": {
"logged_users_refresh_rate": 30
},
"secrets": {
"auth_providers_basic_password": "integracion",
"auth_admin_basic_password": "admin",
"repositorios_arai_password": "documentos",
"firma_password": "documentos",
"db_password": "postgres",
"redis_options_password": "redis",
"nuxeo_admin_password":"Administrator"
}
}

Inicio#

{
"server": {
"host": "",
"port": 0,
"secure": true,
"clusters": false,
"apiUrl": "",
"urlHome": "",
"livereload": 35738,
"urlLogout": ""
},
"cookiesOptions": {
"path":"/",
"domain": "",
"secure": true
},
"crts": {
"ca": "/etc/ssl/crt/sudocu.ca-bundle",
"key": "/etc/ssl/crt/sudocu.key",
"cert": "/etc/ssl/crt/sudocu.crt"
},
"links": {
"gestion": "",
"mpd": "",
"config": "",
}
}

Gestión#

{
"server": {
"path":"/",
"host": "",
"modName": "gestion",
"port": 0,
"secure": true,
"clusters": false,
"apiUrl": "",
"socketUrl": "",
"socketPath": "/socket.io",
"socketSecure": false,
"urlHome": "",
"livereload": 35745,
"contexto": "fr_sudocu_gestion",
"formato_fecha": "dd-MM-yyyy HH:mm",
"modelo_autorizacion": "sudocu"
},
"cookiesOptions": {
"domain": "",
"secure": true
},
"crts": {
"ca": "/etc/ssl/crt/sudocu.ca-bundle",
"cert": "/etc/ssl/crt/sudocu.crt",
"key": "/etc/ssl/crt/sudocu.key"
}
}

MPD#

{
"server": {
"host": "",
"port": 0,
"modName": "mpd",
"secure": true,
"clusters": false,
"apiUrl": "",
"urlHome": "",
"socketUrl": "",
"socketPath": "/socket.io",
"socketSecure": false,
"livereload": 35738
},
"cookiesOptions": {
"domain": "",
"secure": true
},
"crts": {
"ca": "/etc/ssl/crt/sudocu.ca-bundle",
"cert": "/etc/ssl/crt/sudocu.crt",
"key": "/etc/ssl/crt/sudocu.key"
}
}

MPC#

{
"server": {
"host": "",
"port": 0,
"modName": "mpc",
"securePort": 0,
"secure": true,
"clusters": false,
"apiUrl": "",
"urlHome": "",
"socketUrl": "",
"socketPath": "/socket.io",
"socketSecure": false,
"livereload": 35738,
"contexto": "fr_sudocu_mpc"
},
"cookiesOptions": {
"domain": "",
"secure": true
},
"crts": {
"ca": "/etc/ssl/crt/sudocu.ca-bundle",
"cert": "/etc/ssl/crt/sudocu.crt",
"key": "/etc/ssl/crt/sudocu.key"
}
}