diff --git a/conf/nginx.conf b/conf/nginx.conf index 08fe1a6..4f762ac 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,6 +2,15 @@ location __PATH__/ { + # CORS support + add_header Access-Control-Allow-Origin *; + + # Handling preflight requests + if ($request_method = OPTIONS) { + add_header Access-Control-Allow-Methods *; + add_header Access-Control-Allow-Headers *; + } + # Path to source alias __DATA_DIR__/; diff --git a/conf/repository-next.json b/conf/repository-next.json new file mode 100644 index 0000000..f63627d --- /dev/null +++ b/conf/repository-next.json @@ -0,0 +1,56 @@ + { + "$schema": "https://dont-code.net/schemas/v1/repository-schema.json", + "name": "Next Repository __TENANT__", + "description": "Repository provided by Dont-code offering next versions of all plugins", + "webSocketUrl": "ws://__DOMAIN____PATH__/preview", + "storeApiUrl": "https://__DOMAIN____PATH__/data", + "projectApiUrl": "https://__DOMAIN____PATH__/project", + "documentApiUrl": "https://__DOMAIN____PATH__/documents", + "plugins": [ + { + "id": "Basic", + "display-name": "Basic plugin for editing entities", + "version": "1.0.0", + "info": { + "remote-entry":"https://dont-code.net/plugins/next/remoteEntry.mjs" + }, + "config": {} + }, + { + "id": "Fields", + "display-name": "Additional editors for entity properties", + "version": "1.0.0", + "info": { + "remote-entry":"https://dont-code.net/plugins/next/remoteEntry.mjs" + }, + "config": {} + }, + { + "id": "Rest", + "display-name": "Plugins to support datasources from Rest API", + "version": "1.0.0", + "info": { + "remote-entry":"https://dont-code.net/plugin-rest/next/remoteEntry.mjs" + }, + "config": {} + }, + { + "id": "Report", + "display-name": "Plugins to generate and display reports", + "version": "1.0.0", + "info": { + "remote-entry":"https://dont-code.net/plugin-report/next/remoteEntry.mjs" + }, + "config": {} + }, + { + "id": "Commerce", + "display-name": "Plugins to get prices from shops", + "version": "1.0.0", + "info": { + "remote-entry":"https://dont-code.net/plugin-commerce/next/remoteEntry.mjs" + }, + "config": {} + } + ] +} diff --git a/conf/repository-stable.json b/conf/repository-stable.json new file mode 100644 index 0000000..a2d0c2a --- /dev/null +++ b/conf/repository-stable.json @@ -0,0 +1,56 @@ + { + "$schema": "https://dont-code.net/schemas/v1/repository-schema.json", + "name": "Stable Repository __TENANT__", + "description": "Repository provided by Dont-code using stable versions of plugins", + "webSocketUrl": "ws://__DOMAIN____PATH__/preview", + "storeApiUrl": "https://__DOMAIN____PATH__/data", + "projectApiUrl": "https://__DOMAIN____PATH__/project", + "documentApiUrl": "https://__DOMAIN____PATH__/documents", + "plugins": [ + { + "id": "Basic", + "display-name": "Basic plugin for editing entities", + "version": "1.0.0", + "info": { + "remote-entry":"https://dont-code.net/plugins/latest/remoteEntry.mjs" + }, + "config": {} + }, + { + "id": "Fields", + "display-name": "Additional editors for entity properties", + "version": "1.0.0", + "info": { + "remote-entry":"https://dont-code.net/plugins/latest/remoteEntry.mjs" + }, + "config": {} + }, + { + "id": "Rest", + "display-name": "Plugins to support datasources from Rest API", + "version": "1.0.0", + "info": { + "remote-entry":"https://dont-code.net/plugin-rest/latest/remoteEntry.mjs" + }, + "config": {} + }, + { + "id": "Report", + "display-name": "Plugins to generate and display reports", + "version": "1.0.0", + "info": { + "remote-entry":"https://dont-code.net/plugin-report/latest/remoteEntry.mjs" + }, + "config": {} + }, + { + "id": "Commerce", + "display-name": "Plugins to get prices from shops", + "version": "1.0.0", + "info": { + "remote-entry":"https://dont-code.net/plugin-commerce/latest/remoteEntry.mjs" + }, + "config": {} + } + ] +} diff --git a/manifest.toml b/manifest.toml index 6173aeb..270a846 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Dont-code Services" description.en = "Install services and databases needed to support Dont-code platform" description.fr = "Installe les services et base de données nécessaires pour utiliser la plateforme Dont-code" -version = "0.3.1~ynh1" +version = "0.3.1~ynh2" maintainers = ["Dont-code Team"]