X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fotf.git;a=blobdiff_plain;f=otf-frontend%2Fserver%2Fconfig%2Fdefault.json;fp=otf-frontend%2Fserver%2Fconfig%2Fdefault.json;h=dee3f8b5e9592d6059aaca71b5d174b694183153;hp=0000000000000000000000000000000000000000;hb=25d4860be0053f0d3f27cf03947bf05a15f03f62;hpb=5aec107c5ccc82a3e924c8ff68444a3e4406891b 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." + } + } + } +}