Move web security configuration to application module

Issue-ID: CPS-288
Change-Id: Ieba184c3e4727e354c19a3db31325052d15ced44
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
diff --git a/docker-compose/application.yml b/docker-compose/application.yml
index 9b841cb..be4b688 100644
--- a/docker-compose/application.yml
+++ b/docker-compose/application.yml
@@ -34,6 +34,13 @@
         change-log: classpath:changelog/changelog-master.yaml

         labels: ${LIQUIBASE_LABELS}

 

+security:

+    # comma-separated uri patterns which do not require authorization

+    permit-uri: /manage/health/**,/manage/info,/swagger-ui/**,/swagger-resources/**,/v3/api-docs

+    auth:

+        username: ${CPS_USERNAME:cpsuser}

+        password: ${CPS_PASSWORD:cpsr0cks!}

+

 # Actuator

 management:

     endpoints: