X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=otf-frontend%2Fserver%2Fconfig%2Fdefault.json;fp=otf-frontend%2Fserver%2Fconfig%2Fdefault.json;h=dee3f8b5e9592d6059aaca71b5d174b694183153;hb=71f05af02b4df0221f4aa83a2ab4da1d20d327f7;hp=0000000000000000000000000000000000000000;hpb=f97292a3da4a813a1413cbb4c99bac5c0ac169cd;p=it%2Fotf.git diff --git a/otf-frontend/server/config/default.json b/otf-frontend/server/config/default.json new file mode 100644 index 0000000..dee3f8b --- /dev/null +++ b/otf-frontend/server/config/default.json @@ -0,0 +1,52 @@ +{ + "host": "0.0.0.0", + "path": "otf/api/", + "base-path": "otf/api/v1/", + "port": 80, + "ssl": false, + "public": "../../../client/dist/", + "paginate": { + "default": 10, + "max": 50 + }, + "authentication": { + "strategies": [ + "jwt", + "local" + ], + "path": "otf/api/v1/authentication", + "service": "otf/api/v1/users", + "jwt": { + "header": { + "typ": "access" + }, + "audience": "https://localhost", + "subject": "anonymous", + "issuer": "feathers", + "algorithm": "HS256", + "expiresIn": "1d" + }, + "local": { + "entity": "user", + "usernameField": "email", + "passwordField": "password" + } + }, + "rate-limit": { + "mongoStore": { + "collection": "rateLimits" + }, + "services": { + "users": { + "max": 5, + "windowMs": 60000, + "message": "User registration limit reached. Please wait before trying again." + }, + "authentication": { + "max": 1, + "windowsMs": 250000, + "message": "Authentication limit reached. Please wait before trying again." + } + } + } +}