From ad3f1645b04e5a0a50a21738c9d455c662c2ae90 Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Tue, 7 Jul 2015 16:47:03 +0000 Subject: [PATCH] template config file for cat web service --- etc/cat-web-service.conf.template | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 etc/cat-web-service.conf.template diff --git a/etc/cat-web-service.conf.template b/etc/cat-web-service.conf.template new file mode 100644 index 00000000..5ff1e1f5 --- /dev/null +++ b/etc/cat-web-service.conf.template @@ -0,0 +1,40 @@ +[WebService] +serviceHost=0.0.0.0 +servicePort=44436 +sslCertFile=DM_INSTALL_DIR/etc/ssl/cat-web-service.crt +sslKeyFile=DM_INSTALL_DIR/etc/ssl/cat-web-service.key +sslCaCertFile=DM_INSTALL_DIR/etc/ssl/cacert.pem + +[AuthorizationPrincipalManager] +principalRetriever=dm.ds_web_service.service.auth.dsAuthPrincipalRetriever.DsAuthPrincipalRetriever() +#principalRetriever=DbPrincipalRetriever() +#principalRetriever=NoOpPrincipalRetriever() +principalAuthenticator1=CryptedPasswordPrincipalAuthenticator() +principalAuthenticator2=LdapPasswordPrincipalAuthenticator(serverUrl='ldaps://phoebusldap.aps.anl.gov:636', dnFormat='uid=%s,ou=people,o=aps.anl.gov,dc=aps,dc=anl,dc=gov') + +[MongoDbManager] +mongoDbName=dm +mongoDbUri=mongodb://localhost:27017 +mongoDbUser=dm +mongoDbPasswordFile=DM_INSTALL_DIR/etc/dm.db.passwd + +[DsRestApiFactory] +username=DM_SYSTEM_USER +passwordFile=DM_INSTALL_DIR/etc/DM_SYSTEM_USER.system.passwd +host=DM_DS_WEB_SERVICE_HOST +port=DM_DS_WEB_SERVICE_PORT +protocol=DM_WEB_SERVICE_PROTOCOL + +# Available logger levels: debug, info, warn, error, critical +[ConsoleLogging] +handler=ConsoleLoggingHandler(sys.stdout,) +level=debug +format=%(asctime)s,%(msecs)003d %(levelname)s %(filename)s:%(lineno)d %(process)d: %(message)s +dateFormat=%Y/%m/%d %H:%M:%S + +[FileLogging] +handler=TimedRotatingFileLoggingHandler('DM_INSTALL_DIR/var/log/cat-web-service.log') +level=debug +format=%(asctime)s,%(msecs)003d %(levelname)s %(filename)s:%(lineno)d %(process)d: %(message)s +dateFormat=%Y/%m/%d %H:%M:%S + -- GitLab