├── hybrid-services
├── config
│ ├── .gitkeep
│ ├── server.keystore
│ ├── server.truststore
│ ├── rpc-router.yml
│ ├── kafka.yml
│ └── security.yml
├── service
│ └── .gitkeep
└── Dockerfile
├── .gitignore
├── zookeeper
├── Dockerfile
└── build.sh
├── controller
├── values.yml
├── body.yml
├── client.keystore
├── server.keystore
├── client.truststore
├── server.truststore
├── traceability.yml
├── health.yml
├── path-resource.yml
├── info.yml
├── correlation.yml
├── sanitizer.yml
├── basic-auth.yml
├── service.yml
├── mask.yml
├── metrics.yml
└── config.yml
├── mysql
├── replication.cnf
├── mysql-cli.sh
├── todo_db.sql
├── build.sh
├── Dockerfile
├── create_vault.sql
├── saga_example.sql
└── config_server_mysql.sql
├── mariadb
├── replication.cnf
├── mysql-cli.sh
├── todo_db.sql
├── build.sh
├── Dockerfile
├── create_vault.sql
├── saga_example.sql
└── README.md
├── elasticsearch
├── config
│ └── .placeholder
└── Dockerfile
├── portal-registry
├── apia
│ └── values.yml
├── apid
│ └── values.yml
├── apib
│ └── values.yml
└── apic
│ └── values.yml
├── prometheus
└── Dockerfile
├── test2
└── reference
│ ├── values.yml
│ ├── client.truststore
│ └── cors.yml
├── email-mysql
├── Dockerfile
├── mysql-cli.sh
├── build.sh
├── docker-compose.yml
└── README.md
├── light-proxy
├── aws-lambda
│ ├── config
│ │ ├── body.yml
│ │ ├── client.keystore
│ │ ├── server.keystore
│ │ ├── client.truststore
│ │ ├── server.truststore
│ │ ├── traceability.yml
│ │ ├── correlation.yml
│ │ ├── lambda-invoker.yml
│ │ └── proxy.yml
│ └── Dockerfile
├── openapi
│ └── config
│ │ ├── client.keystore
│ │ ├── server.keystore
│ │ ├── client.truststore
│ │ ├── server.truststore
│ │ └── proxy.yml
├── swagger
│ └── config
│ │ ├── client.keystore
│ │ ├── server.keystore
│ │ ├── client.truststore
│ │ ├── server.truststore
│ │ ├── proxy.yml
│ │ └── security.yml
├── README.md
└── schema-registry
│ └── proxy.yml
├── tokenization
├── config
│ ├── server.keystore
│ ├── server.truststore
│ └── datasource.yml
└── README.md
├── light-oauth2
├── mysql
│ └── config
│ │ ├── oauth2-key
│ │ ├── oauth_key.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ └── openapi-validator.yml
│ │ ├── oauth2-code
│ │ ├── oauth_code.yml
│ │ ├── client.keystore
│ │ ├── client.truststore
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── github.yml
│ │ ├── ldap.yml
│ │ ├── path-resource.yml
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── spnego.yml
│ │ └── security.yml
│ │ ├── oauth2-token
│ │ ├── oauth_token.yml
│ │ ├── primary.jks
│ │ ├── secondary.jks
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ └── openapi-validator.yml
│ │ ├── oauth2-user
│ │ ├── oauth_user.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ └── openapi-validator.yml
│ │ ├── oauth2-client
│ │ ├── oauth_client.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ └── openapi-validator.yml
│ │ ├── oauth2-provider
│ │ ├── oauth_provider.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ └── service.yml
│ │ ├── oauth2-service
│ │ ├── oauth_service.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ └── openapi-validator.yml
│ │ └── oauth2-refresh-token
│ │ ├── oauth_refreshtoken.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ └── openapi-validator.yml
├── mariadb
│ └── config
│ │ ├── oauth2-code
│ │ ├── oauth_code.yml
│ │ ├── client.keystore
│ │ ├── server.keystore
│ │ ├── client.truststore
│ │ ├── server.truststore
│ │ ├── github.yml
│ │ ├── ldap.yml
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── spnego.yml
│ │ └── security.yml
│ │ ├── oauth2-key
│ │ ├── oauth_key.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── security.yml
│ │ └── service.yml
│ │ ├── oauth2-user
│ │ ├── oauth_user.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── security.yml
│ │ └── service.yml
│ │ ├── oauth2-client
│ │ ├── oauth_client.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ └── security.yml
│ │ ├── oauth2-service
│ │ ├── oauth_service.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ └── security.yml
│ │ ├── oauth2-token
│ │ ├── oauth_token.yml
│ │ ├── primary.jks
│ │ ├── secondary.jks
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ └── security.yml
│ │ ├── oauth2-provider
│ │ ├── oauth_provider.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ └── service.yml
│ │ └── oauth2-refresh-token
│ │ ├── oauth_refreshtoken.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ └── security.yml
├── oracle
│ └── config
│ │ ├── oauth2-code
│ │ ├── oauth_code.yml
│ │ ├── client.keystore
│ │ ├── server.keystore
│ │ ├── client.truststore
│ │ ├── server.truststore
│ │ ├── github.yml
│ │ ├── ldap.yml
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── spnego.yml
│ │ └── security.yml
│ │ ├── oauth2-key
│ │ ├── oauth_key.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ │ ├── oauth2-token
│ │ ├── oauth_token.yml
│ │ ├── primary.jks
│ │ ├── secondary.jks
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ │ ├── oauth2-user
│ │ ├── oauth_user.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ │ ├── oauth2-client
│ │ ├── oauth_client.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ │ ├── oauth2-service
│ │ ├── oauth_service.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ │ ├── oauth2-provider
│ │ ├── oauth_provider.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ └── service.yml
│ │ └── oauth2-refresh-token
│ │ ├── oauth_refreshtoken.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
├── postgres
│ └── config
│ │ ├── oauth2-code
│ │ ├── oauth_code.yml
│ │ ├── client.keystore
│ │ ├── server.keystore
│ │ ├── client.truststore
│ │ ├── github.yml
│ │ ├── server.truststore
│ │ ├── ldap.yml
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── spnego.yml
│ │ └── security.yml
│ │ ├── oauth2-key
│ │ ├── oauth_key.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ │ ├── oauth2-user
│ │ ├── oauth_user.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ │ ├── oauth2-client
│ │ ├── oauth_client.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ │ ├── oauth2-token
│ │ ├── oauth_token.yml
│ │ ├── primary.jks
│ │ ├── secondary.jks
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ │ ├── oauth2-provider
│ │ ├── oauth_provider.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ └── service.yml
│ │ ├── oauth2-service
│ │ ├── oauth_service.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ │ └── oauth2-refresh-token
│ │ ├── oauth_refreshtoken.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
└── sqlserver
│ ├── config
│ ├── oauth2-key
│ │ ├── oauth_key.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ ├── oauth2-client
│ │ ├── oauth_client.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ ├── oauth2-code
│ │ ├── oauth_code.yml
│ │ ├── client.keystore
│ │ ├── server.keystore
│ │ ├── client.truststore
│ │ ├── server.truststore
│ │ ├── github.yml
│ │ ├── ldap.yml
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── spnego.yml
│ │ └── security.yml
│ ├── oauth2-token
│ │ ├── oauth_token.yml
│ │ ├── primary.jks
│ │ ├── secondary.jks
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ ├── oauth2-user
│ │ ├── oauth_user.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ ├── oauth2-provider
│ │ ├── oauth_provider.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ └── service.yml
│ ├── oauth2-service
│ │ ├── oauth_service.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ ├── service.yml
│ │ └── security.yml
│ └── oauth2-refresh-token
│ │ ├── oauth_refreshtoken.yml
│ │ ├── server.keystore
│ │ ├── server.truststore
│ │ ├── cors.yml
│ │ ├── openapi-validator.yml
│ │ └── service.yml
│ └── entrypoint.sh
├── logstash
├── Dockerfile
└── config
│ └── logstash.conf
├── postgres
├── docker-entrypoint-initdb.d
│ ├── init-permissions.sh
│ └── initialize_db_postgres.sql
└── postgresql.conf.sample
├── kibana
├── Dockerfile
└── entrypoint.sh
├── docker-compose-controller.yml
├── docker-compose-postgres.yml
├── light-codegen
├── docker-entrypoint.sh
├── Dockerfile
└── README.md
├── swagger-bundler
├── docker-entrypoint.sh
├── build.sh
├── README.md
└── Dockerfile
├── tram-cdcserver
├── Dockerfile
└── config
│ ├── cdc.yml
│ └── kafka.yml
├── tram-oracle-cdcserver
├── Dockerfile
├── config
│ ├── cdc.yml
│ └── kafka.yml
├── config2
│ ├── cdc.yml
│ └── kafka.yml
└── build.sh
├── docker-compose-timescale.yml
├── set-docker-host-ip.sh
├── docker-compose-registrator.yml
├── docker-compose-tokenization.yml
├── light-docker.iml
├── docker-compose-openapi-proxy.yml
├── docker-compose-swagger-proxy.yml
├── kafka
├── Dockerfile
├── build.sh
└── run-kafka.sh
├── docker-compose-test2.yaml
├── docker-compose-database.yaml
├── docker-compose-mysql.yml
├── docker-compose-mariadb.yml
├── docker-compose-prometheus.yml
├── sqlserver
└── entrypoint.sh
├── docker-compose-zookeeper-kafka.yml
├── docker-compose-consul.yml
├── docker-compose-schema-registry.yml
├── docker-compose-logging.yml
├── docker-compose-hybrid-service.yml
├── api
└── README.md
└── docker-compose-discovery.yml
/hybrid-services/config/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hybrid-services/service/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | !*.jar
3 | *.jar
--------------------------------------------------------------------------------
/zookeeper/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM zookeeper:3.4.13
2 |
--------------------------------------------------------------------------------
/controller/values.yml:
--------------------------------------------------------------------------------
1 | path-resource.base: /build
2 |
--------------------------------------------------------------------------------
/mysql/replication.cnf:
--------------------------------------------------------------------------------
1 | [mysqld]
2 | log-bin=mysql-bin
3 | server-id=1
4 |
--------------------------------------------------------------------------------
/mariadb/replication.cnf:
--------------------------------------------------------------------------------
1 | [mysqld]
2 | log-bin=mysql-bin
3 | server-id=1
4 |
--------------------------------------------------------------------------------
/elasticsearch/config/.placeholder:
--------------------------------------------------------------------------------
1 | Ensure the existence of the parent folder.
2 |
--------------------------------------------------------------------------------
/portal-registry/apia/values.yml:
--------------------------------------------------------------------------------
1 | portalRegistry.portalUrl: https://192.168.1.144:8438
--------------------------------------------------------------------------------
/portal-registry/apid/values.yml:
--------------------------------------------------------------------------------
1 | portalRegistry.portalUrl: https://192.168.1.144:8438
--------------------------------------------------------------------------------
/prometheus/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM prom/prometheus
2 | ADD prometheus.yml /etc/prometheus/
--------------------------------------------------------------------------------
/portal-registry/apib/values.yml:
--------------------------------------------------------------------------------
1 | portalRegistry.portalUrl: https://192.168.1.144:8438
2 |
--------------------------------------------------------------------------------
/portal-registry/apic/values.yml:
--------------------------------------------------------------------------------
1 | portalRegistry.portalUrl: https://192.168.1.144:8438
2 |
--------------------------------------------------------------------------------
/test2/reference/values.yml:
--------------------------------------------------------------------------------
1 | server.httpsPort: 2498
2 | server.enableRegistry: true
3 |
--------------------------------------------------------------------------------
/controller/body.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Enable body parse flag
3 | enabled: ${body.enabled:true}
4 |
--------------------------------------------------------------------------------
/email-mysql/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mysql:5.7
2 | COPY postfix.sql /docker-entrypoint-initdb.d
3 |
--------------------------------------------------------------------------------
/controller/client.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/controller/client.keystore
--------------------------------------------------------------------------------
/controller/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/controller/server.keystore
--------------------------------------------------------------------------------
/light-proxy/aws-lambda/config/body.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Enable body parse flag
3 | enabled: ${body.enabled:true}
4 |
--------------------------------------------------------------------------------
/controller/client.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/controller/client.truststore
--------------------------------------------------------------------------------
/controller/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/controller/server.truststore
--------------------------------------------------------------------------------
/test2/reference/client.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/test2/reference/client.truststore
--------------------------------------------------------------------------------
/tokenization/config/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/tokenization/config/server.keystore
--------------------------------------------------------------------------------
/tokenization/config/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/tokenization/config/server.truststore
--------------------------------------------------------------------------------
/hybrid-services/config/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/hybrid-services/config/server.keystore
--------------------------------------------------------------------------------
/hybrid-services/config/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/hybrid-services/config/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-key/oauth_key.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/oauth_code.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-key/oauth_key.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-user/oauth_user.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/oauth_code.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-token/oauth_token.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-user/oauth_user.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/oauth_code.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-key/oauth_key.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-token/oauth_token.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-user/oauth_user.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/oauth_code.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-key/oauth_key.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-user/oauth_user.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-key/oauth_key.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-proxy/openapi/config/client.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/openapi/config/client.keystore
--------------------------------------------------------------------------------
/light-proxy/openapi/config/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/openapi/config/server.keystore
--------------------------------------------------------------------------------
/light-proxy/swagger/config/client.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/swagger/config/client.keystore
--------------------------------------------------------------------------------
/light-proxy/swagger/config/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/swagger/config/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-client/oauth_client.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-service/oauth_service.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-token/oauth_token.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-client/oauth_client.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-provider/oauth_provider.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-service/oauth_service.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-client/oauth_client.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-service/oauth_service.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-client/oauth_client.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-token/oauth_token.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-client/oauth_client.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/oauth_code.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-token/oauth_token.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-user/oauth_user.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-proxy/aws-lambda/config/client.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/aws-lambda/config/client.keystore
--------------------------------------------------------------------------------
/light-proxy/aws-lambda/config/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/aws-lambda/config/server.keystore
--------------------------------------------------------------------------------
/light-proxy/openapi/config/client.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/openapi/config/client.truststore
--------------------------------------------------------------------------------
/light-proxy/openapi/config/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/openapi/config/server.truststore
--------------------------------------------------------------------------------
/light-proxy/swagger/config/client.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/swagger/config/client.truststore
--------------------------------------------------------------------------------
/light-proxy/swagger/config/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/swagger/config/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-provider/oauth_provider.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-provider/oauth_provider.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-provider/oauth_provider.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-service/oauth_service.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-provider/oauth_provider.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-service/oauth_service.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-proxy/aws-lambda/config/client.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/aws-lambda/config/client.truststore
--------------------------------------------------------------------------------
/light-proxy/aws-lambda/config/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-proxy/aws-lambda/config/server.truststore
--------------------------------------------------------------------------------
/logstash/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM logstash:5
2 |
3 | # Add your logstash plugins setup here
4 | # Example: RUN logstash-plugin install logstash-filter-json
5 |
--------------------------------------------------------------------------------
/hybrid-services/config/rpc-router.yml:
--------------------------------------------------------------------------------
1 | ---
2 | description: RPC router description
3 | handlerPackage: 'net.lightapi'
4 | jsonPath: /api/json
5 |
6 |
7 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-refresh-token/oauth_refreshtoken.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-token/primary.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-token/primary.jks
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-refresh-token/oauth_refreshtoken.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-refresh-token/oauth_refreshtoken.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-token/primary.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-token/primary.jks
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-key/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-key/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-token/secondary.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-token/secondary.jks
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-token/primary.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-token/primary.jks
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-refresh-token/oauth_refreshtoken.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-refresh-token/oauth_refreshtoken.yml:
--------------------------------------------------------------------------------
1 | # default config yml file for authorize service
2 | ---
3 | enableAudit: false
4 |
5 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/client.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-code/client.keystore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-code/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-key/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-key/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-token/secondary.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-token/secondary.jks
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-user/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-user/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-client/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-client/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/client.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-code/client.keystore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/client.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-code/client.truststore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-code/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-code/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-key/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-key/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-token/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-token/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-user/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-user/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-user/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-user/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/client.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-code/client.keystore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-code/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-key/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-key/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-key/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-key/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-token/secondary.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-token/secondary.jks
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-token/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-token/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-user/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-user/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-key/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-key/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-token/primary.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-token/primary.jks
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-token/secondary.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-token/secondary.jks
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-token/primary.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-token/primary.jks
--------------------------------------------------------------------------------
/controller/traceability.yml:
--------------------------------------------------------------------------------
1 | # Traceability Id handler configuration
2 | ---
3 | # Indicate if this handler is enabled or not
4 | enabled: ${traceability.enabled:true}
5 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-client/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-client/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/client.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-code/client.truststore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-code/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-key/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-key/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-token/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-token/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-user/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-user/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-client/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-client/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-provider/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-provider/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-service/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-service/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-token/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-token/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-client/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-client/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/client.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-code/client.truststore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-code/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-service/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-service/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-token/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-token/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-user/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-user/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/client.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-code/client.keystore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-code/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-key/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-key/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-token/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-token/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-user/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-user/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/client.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-code/client.keystore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-code/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-key/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-key/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-token/secondary.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-token/secondary.jks
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-user/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-user/server.keystore
--------------------------------------------------------------------------------
/postgres/docker-entrypoint-initdb.d/init-permissions.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -e
3 |
4 | { echo "host replication $POSTGRES_USER 0.0.0.0/0 trust"; } >> "$PGDATA/pg_hba.conf"
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-client/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-client/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/github.yml:
--------------------------------------------------------------------------------
1 | protocol: https
2 | host: api.github.com
3 | pathPrefix: ''
4 | owner: yourorg
5 | repo: marketplace-admin
6 | path: users.json
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-provider/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-provider/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-service/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-service/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-service/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-service/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-token/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-token/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/github.yml:
--------------------------------------------------------------------------------
1 | protocol: https
2 | host: api.github.com
3 | pathPrefix: ''
4 | owner: yourorg
5 | repo: marketplace-admin
6 | path: users.json
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-provider/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-provider/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-service/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-service/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-client/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-client/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/github.yml:
--------------------------------------------------------------------------------
1 | protocol: https
2 | host: api.github.com
3 | pathPrefix: ''
4 | owner: yourorg
5 | repo: marketplace-admin
6 | path: users.json
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-provider/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-provider/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-provider/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-provider/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-service/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-service/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-client/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-client/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-client/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-client/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/client.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-code/client.truststore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/github.yml:
--------------------------------------------------------------------------------
1 | protocol: https
2 | host: api.github.com
3 | pathPrefix: ''
4 | owner: yourorg
5 | repo: marketplace-admin
6 | path: users.json
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-code/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-provider/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-provider/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-service/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-service/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-token/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-token/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-user/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-user/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-client/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-client/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/client.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-code/client.truststore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-code/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-key/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-key/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-service/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-service/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-token/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-token/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-token/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-token/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-user/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-user/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-provider/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-provider/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-refresh-token/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-refresh-token/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-provider/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-provider/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-service/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-service/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-client/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-client/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/github.yml:
--------------------------------------------------------------------------------
1 | protocol: https
2 | host: api.github.com
3 | pathPrefix: ''
4 | owner: yourorg
5 | repo: marketplace-admin
6 | path: users.json
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-provider/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-provider/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-service/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-service/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-refresh-token/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-refresh-token/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-refresh-token/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mysql/config/oauth2-refresh-token/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-refresh-token/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-refresh-token/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-refresh-token/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/oracle/config/oauth2-refresh-token/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-refresh-token/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-refresh-token/server.keystore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-provider/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-provider/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-refresh-token/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/mariadb/config/oauth2-refresh-token/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-refresh-token/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/postgres/config/oauth2-refresh-token/server.truststore
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-refresh-token/server.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-refresh-token/server.keystore
--------------------------------------------------------------------------------
/light-proxy/aws-lambda/config/traceability.yml:
--------------------------------------------------------------------------------
1 | # Traceability Id handler configuration
2 | ---
3 | # Indicate if this handler is enabled or not
4 | enabled: ${traceability.enabled:true}
5 |
--------------------------------------------------------------------------------
/controller/health.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Server health endpoint that can output OK to indicate the server is alive
3 |
4 | # true to enable this middleware handler.
5 | enabled: ${health.enabled:true}
6 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-refresh-token/server.truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/networknt/light-docker/HEAD/light-oauth2/sqlserver/config/oauth2-refresh-token/server.truststore
--------------------------------------------------------------------------------
/elasticsearch/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM elasticsearch:5
2 |
3 | ENV ES_JAVA_OPTS="-Des.path.conf=/etc/elasticsearch"
4 |
5 | CMD ["-E", "network.host=0.0.0.0", "-E", "discovery.zen.minimum_master_nodes=1"]
6 |
--------------------------------------------------------------------------------
/controller/path-resource.yml:
--------------------------------------------------------------------------------
1 | path: /
2 | base: ${path-resource.base:/home/steve/networknt/light-controller/view/build}
3 | prefix: true
4 | transferMinSize: 10485760
5 | directoryListingEnabled: false
6 |
--------------------------------------------------------------------------------
/tokenization/README.md:
--------------------------------------------------------------------------------
1 | To start tokenization service with MySQL database in a docker-compose:
2 |
3 | ```
4 | cd ~/networknt/light-docker
5 | docker-compose -f docker-compose-tokenization.yml up
6 | ```
7 |
--------------------------------------------------------------------------------
/kibana/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM kibana:5
2 |
3 | RUN apt-get update && apt-get install -y netcat bzip2
4 |
5 | COPY entrypoint.sh /tmp/entrypoint.sh
6 | RUN chmod +x /tmp/entrypoint.sh
7 |
8 | CMD ["/tmp/entrypoint.sh"]
9 |
--------------------------------------------------------------------------------
/mariadb/mysql-cli.sh:
--------------------------------------------------------------------------------
1 | #! /bin/bash -e
2 |
3 | docker run -it --link some-mariadb:mysql --rm mariadb sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
--------------------------------------------------------------------------------
/logstash/config/logstash.conf:
--------------------------------------------------------------------------------
1 | input {
2 | gelf {}
3 | }
4 |
5 | ## Add your filters / logstash plugins configuration here
6 |
7 | output {
8 | elasticsearch {
9 | hosts => "elasticsearch:9200"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/controller/info.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Server info endpoint that can output environment and component along with configuration
3 |
4 | # Indicate if the server info is enable or not.
5 | enableServerInfo: ${info.enableServerInfo:true}
6 |
--------------------------------------------------------------------------------
/docker-compose-controller.yml:
--------------------------------------------------------------------------------
1 | version: "3"
2 |
3 | services:
4 | controller:
5 | image: networknt/light-controller
6 | volumes:
7 | - ./controller:/config
8 | ports:
9 | - 8438:8438
10 | network_mode: host
11 |
--------------------------------------------------------------------------------
/docker-compose-postgres.yml:
--------------------------------------------------------------------------------
1 | # Use postgres/secret user/password credentials
2 | version: '3.1'
3 |
4 | services:
5 | postgres:
6 | image: postgres
7 | environment:
8 | POSTGRES_PASSWORD: secret
9 | network_mode: host
10 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/ldap.yml:
--------------------------------------------------------------------------------
1 | uri: ldaps://localhost:10636/ou=users,dc=undertow,dc=io
2 | domain: undertow.io
3 | ldapPrincipal: uid=oauth,ou=users,dc=undertow,dc=io
4 | searchFilter: (&(uid=%s)(objectClass=person))
5 | searchBase: ''
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/ldap.yml:
--------------------------------------------------------------------------------
1 | uri: ldaps://localhost:10636/ou=users,dc=undertow,dc=io
2 | domain: undertow.io
3 | ldapPrincipal: uid=oauth,ou=users,dc=undertow,dc=io
4 | searchFilter: (&(uid=%s)(objectClass=person))
5 | searchBase: ''
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/ldap.yml:
--------------------------------------------------------------------------------
1 | uri: ldaps://localhost:10636/ou=users,dc=undertow,dc=io
2 | domain: undertow.io
3 | ldapPrincipal: uid=oauth,ou=users,dc=undertow,dc=io
4 | searchFilter: (&(uid=%s)(objectClass=person))
5 | searchBase: ''
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/ldap.yml:
--------------------------------------------------------------------------------
1 | uri: ldaps://localhost:10636/ou=users,dc=undertow,dc=io
2 | domain: undertow.io
3 | ldapPrincipal: uid=oauth,ou=users,dc=undertow,dc=io
4 | searchFilter: (&(uid=%s)(objectClass=person))
5 | searchBase: ''
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/ldap.yml:
--------------------------------------------------------------------------------
1 | uri: ldaps://localhost:10636/ou=users,dc=undertow,dc=io
2 | domain: undertow.io
3 | ldapPrincipal: uid=oauth,ou=users,dc=undertow,dc=io
4 | searchFilter: (&(uid=%s)(objectClass=person))
5 | searchBase: ''
--------------------------------------------------------------------------------
/light-codegen/docker-entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -eo pipefail
4 |
5 | codegen="/light-api/light-codegen/codegen-cli/target/codegen-cli.jar"
6 |
7 | JAVA_OPTS=${JAVA_OPTS:"-XX:MaxPermSize=256M -Xmx1024M"}
8 |
9 | exec java ${JAVA_OPTS} -jar ${codegen} "$@"
--------------------------------------------------------------------------------
/mysql/mysql-cli.sh:
--------------------------------------------------------------------------------
1 | #! /bin/bash -e
2 |
3 | docker run $* \
4 | --name mysqlterm --link mysql_1:mysql --rm mysql:5.7 \
5 | sh -c 'exec mysql -h"$MYSQL_ROOT_PASSWORD" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" -o "$MYSQL_ENV_DATABASE"'
--------------------------------------------------------------------------------
/swagger-bundler/docker-entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -eo pipefail
4 |
5 | bundler="/light-api/swagger-bundler/target/swagger-bundler.jar"
6 |
7 | JAVA_OPTS=${JAVA_OPTS:"-XX:MaxPermSize=256M -Xmx1024M"}
8 |
9 | exec java ${JAVA_OPTS} -jar ${bundler} "$@"
--------------------------------------------------------------------------------
/tram-cdcserver/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM openjdk:8-jre-alpine
2 | EXPOSE 8845
3 | ADD /tram-cdc-mysql-server.jar server.jar
4 | CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -cp /server.jar com.networknt.server.Server"]
5 |
--------------------------------------------------------------------------------
/tram-oracle-cdcserver/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM openjdk:8-jre-alpine
2 |
3 | ADD /tram-cdc-polling-server.jar server.jar
4 | CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -cp /server.jar com.networknt.server.Server"]
5 |
--------------------------------------------------------------------------------
/email-mysql/mysql-cli.sh:
--------------------------------------------------------------------------------
1 | #! /bin/bash -e
2 |
3 | docker run $* \
4 | --name mysqlterm --link mysql_1:mysql --rm mysql:5.7 \
5 | sh -c 'exec mysql -h"$MYSQL_ROOT_PASSWORD" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" -o "$MYSQL_ENV_DATABASE"'
--------------------------------------------------------------------------------
/hybrid-services/Dockerfile:
--------------------------------------------------------------------------------
1 |
2 | FROM openjdk:8-jre-alpine
3 | EXPOSE 8443
4 | ADD /service/hybrid-command.jar server.jar
5 | CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -cp /server.jar:/service/* com.networknt.server.Server"]
6 |
--------------------------------------------------------------------------------
/kibana/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Wait for the Elasticsearch container to be ready before starting Kibana.
4 | echo "Stalling for Elasticsearch"
5 | while true; do
6 | nc -q 1 elasticsearch 9200 2>/dev/null && break
7 | done
8 |
9 | echo "Starting Kibana"
10 | exec kibana
11 |
--------------------------------------------------------------------------------
/tram-oracle-cdcserver/config/cdc.yml:
--------------------------------------------------------------------------------
1 | sourceTableName: MESSAGE
2 | maximumPoolSize: 10
3 | kafka: kafka:9092
4 | zookeeper: zookeeper:2181
5 | leadershipLockPath: /eventuatelocal/cdc/leader
6 | maxEventsPerPolling: 20
7 | maxAttemptsForPolling: 5
8 | pollingRetryIntervalInMilliseconds: 200
9 | pollingIntervalInMilliseconds: 5000
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/path-resource.yml:
--------------------------------------------------------------------------------
1 | path: /
2 | # This is the base used by docker
3 | base: /login-view/build
4 | # This is the base that is used for IDE debugging
5 | # base: /home/steve/networknt/light-oauth2/login-view/build
6 | prefix: true
7 | transferMinSize: 10485760
8 | directoryListingEnabled: false
9 |
--------------------------------------------------------------------------------
/tram-oracle-cdcserver/config2/cdc.yml:
--------------------------------------------------------------------------------
1 | sourceTableName: MESSAGE
2 | maximumPoolSize: 10
3 | kafka: kafka:9092
4 | zookeeper: zookeeper:2181
5 | leadershipLockPath: /eventuatelocal/cdc/leader
6 | maxEventsPerPolling: 20
7 | maxAttemptsForPolling: 5
8 | pollingRetryIntervalInMilliseconds: 200
9 | pollingIntervalInMilliseconds: 5000
--------------------------------------------------------------------------------
/docker-compose-timescale.yml:
--------------------------------------------------------------------------------
1 | # Use postgres/secret user/password credentials
2 | version: '3.1'
3 |
4 | services:
5 | timescale:
6 | image: timescale/timescaledb:latest-pg14
7 | volumes:
8 | - /opt/timescale:/var/lib/postgresql/data
9 | environment:
10 | POSTGRES_PASSWORD: secret
11 | network_mode: host
12 |
--------------------------------------------------------------------------------
/set-docker-host-ip.sh:
--------------------------------------------------------------------------------
1 | if [ -z "$DOCKER_HOST_IP" ] ; then
2 | if [ -z "$DOCKER_HOST" ] ; then
3 | export DOCKER_HOST_IP=`hostname`
4 | else
5 | echo using ${DOCKER_HOST?}
6 | XX=${DOCKER_HOST%\:*}
7 | export DOCKER_HOST_IP=${XX#tcp\:\/\/}
8 | fi
9 | fi
10 |
11 | echo DOCKER_HOST_IP is $DOCKER_HOST_IP
12 |
--------------------------------------------------------------------------------
/docker-compose-registrator.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 |
3 | services:
4 |
5 | registrator:
6 | image: gliderlabs/registrator:latest
7 | command: "-tags=\"test1\" --deregister=always consul://127.0.0.1:8500"
8 | container_name: registrator
9 | network_mode: "host"
10 | volumes:
11 | - /var/run/docker.sock:/tmp/docker.sock
12 |
--------------------------------------------------------------------------------
/docker-compose-tokenization.yml:
--------------------------------------------------------------------------------
1 | version: "2.0"
2 | services:
3 |
4 | tokenization:
5 | image: networknt/tokenization-1.0.0
6 | ports:
7 | - "6888:6888"
8 | volumes:
9 | - ./tokenization:/config
10 | networks:
11 | - localnet
12 |
13 | # Networks
14 | #
15 | networks:
16 | localnet:
17 | external: true
18 |
--------------------------------------------------------------------------------
/test2/reference/cors.yml:
--------------------------------------------------------------------------------
1 | enabled: true
2 | allowedOrigins:
3 | - https://signin.lightapi.net
4 | - https://lightapi.net
5 | - https://dev.lightapi.net
6 | - https://ob.lightapi.net
7 | - http://localhost:3000
8 | - https://localhost:3000
9 | - http://networknt.github.io
10 | allowedMethods:
11 | - GET
12 | - POST
13 | - PUT
14 |
--------------------------------------------------------------------------------
/controller/correlation.yml:
--------------------------------------------------------------------------------
1 | # Correlation Id Handler Configuration
2 | ---
3 | # If enabled is true, the handler will be injected into the request and response chain.
4 | enabled: ${correlation.enabled:true}
5 |
6 | # If set to true, it will auto-generate the correlationID if it is not provided in the request
7 | autogenCorrelationID: ${correlation.autogenCorrelationID:true}
8 |
--------------------------------------------------------------------------------
/light-docker.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/docker-compose-openapi-proxy.yml:
--------------------------------------------------------------------------------
1 | version: "2"
2 | #
3 | # Services
4 | #
5 | services:
6 | openapi-proxy:
7 | image: networknt/light-proxy:latest
8 | ports:
9 | - 8080:8080
10 | volumes:
11 | - ./light-proxy/openapi/config:/config
12 | networks:
13 | - localnet
14 |
15 | # Networks
16 | #
17 | networks:
18 | localnet:
19 | external: true
20 |
--------------------------------------------------------------------------------
/docker-compose-swagger-proxy.yml:
--------------------------------------------------------------------------------
1 | version: "2"
2 | #
3 | # Services
4 | #
5 | services:
6 | swagger-proxy:
7 | image: networknt/light-proxy:latest
8 | ports:
9 | - 8080:8080
10 | volumes:
11 | - ./light-proxy/swagger/config:/config
12 | networks:
13 | - localnet
14 |
15 | # Networks
16 | #
17 | networks:
18 | localnet:
19 | external: true
20 |
--------------------------------------------------------------------------------
/light-proxy/aws-lambda/config/correlation.yml:
--------------------------------------------------------------------------------
1 | # Correlation Id Handler Configuration
2 | ---
3 | # If enabled is true, the handler will be injected into the request and response chain.
4 | enabled: ${correlation.enabled:true}
5 |
6 | # If set to true, it will auto-generate the correlationID if it is not provided in the request
7 | autogenCorrelationID: ${correlation.autogenCorrelationID:true}
8 |
--------------------------------------------------------------------------------
/kafka/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM openjdk:8-jdk
2 | RUN wget -q -O - http://www.us.apache.org/dist/kafka/2.0.0/kafka_2.12-2.0.0.tgz | tar -xzf - -C /usr/local
3 | WORKDIR /usr/local/kafka_2.12-2.0.0
4 | EXPOSE 9092
5 | VOLUME /usr/local/kafka-config
6 | ADD ./config/server.properties /usr/local/kafka-config/server.properties
7 | ADD run-kafka.sh /usr/local/kafka_2.12-2.0.0/run-kafka.sh
8 | CMD ./run-kafka.sh
9 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-user/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-service/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:3000
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-user/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:3000
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-service/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-user/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-user/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-user/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/mysql/todo_db.sql:
--------------------------------------------------------------------------------
1 | create database todo_db;
2 |
3 | GRANT ALL PRIVILEGES ON todo_db.* TO 'mysqluser'@'%' WITH GRANT OPTION;
4 |
5 | use todo_db;
6 |
7 | DROP table IF EXISTS TODO;
8 |
9 |
10 | CREATE TABLE TODO (
11 | ID varchar(255),
12 | TITLE varchar(255),
13 | COMPLETED BOOLEAN,
14 | ORDER_ID INTEGER,
15 | ACTIVE_FLG varchar(1) DEFAULT 'Y',
16 | PRIMARY KEY(ID)
17 | );
18 |
--------------------------------------------------------------------------------
/docker-compose-test2.yaml:
--------------------------------------------------------------------------------
1 | # test2 docker-compose
2 | version: "2"
3 | services:
4 | # There is only one test instance of light-reference and it is allocated at test2
5 | reference:
6 | image: networknt/com.networknt.reference-1.0.0:latest
7 | volumes:
8 | - ./test2/reference:/config
9 | environment:
10 | - STATUS_HOST_IP=${DOCKER_HOST_IP}
11 | network_mode: host
12 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-service/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-refresh-token/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:3000
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-service/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-service/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/mariadb/todo_db.sql:
--------------------------------------------------------------------------------
1 | create database todo_db;
2 |
3 | GRANT ALL PRIVILEGES ON todo_db.* TO 'mysqluser'@'%' WITH GRANT OPTION;
4 |
5 | use todo_db;
6 |
7 | DROP table IF EXISTS TODO;
8 |
9 |
10 | CREATE TABLE TODO (
11 | ID varchar(255),
12 | TITLE varchar(255),
13 | COMPLETED BOOLEAN,
14 | ORDER_ID INTEGER,
15 | ACTIVE_FLG varchar(1) DEFAULT 'Y',
16 | PRIMARY KEY(ID)
17 | );
18 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-refresh-token/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-refresh-token/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-refresh-token/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-refresh-token/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | enabled: true
6 | allowedOrigins:
7 | - http://localhost:8080
8 | allowedMethods:
9 | - GET
10 | - POST
11 | - PUT
12 | - DELETE
13 |
--------------------------------------------------------------------------------
/controller/sanitizer.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Sanitize request for cross site scripting during runtime
3 |
4 | # indicate if sanitizer is enabled or not
5 | enabled: ${sanitizer.enabled:true}
6 |
7 | # if it is enabled, does body need to be sanitized
8 | sanitizeBody: ${sanitizer.sanitizeBody:true}
9 |
10 | # if it is enabled, does header need to be sanitized
11 | sanitizeHeader: ${sanitizer.sanitizeHeader:false}
12 |
--------------------------------------------------------------------------------
/docker-compose-database.yaml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 | mysql:
4 | image: networknt/mysql
5 | ports:
6 | - 3306:3306
7 | environment:
8 | - MYSQL_ROOT_PASSWORD=rootpassword
9 | - MYSQL_USER=mysqluser
10 | - MYSQL_PASSWORD=mysqlpw
11 | network_mode: "host"
12 | redis:
13 | image: redis
14 | ports:
15 | - 6379:6379
16 | network_mode: "host"
17 |
--------------------------------------------------------------------------------
/mysql/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -ex
4 |
5 | IMAGE_NAME="networknt/mysql"
6 | TAG="${1}"
7 |
8 | if docker inspect ${IMAGE_NAME} &> /dev/null; then
9 | docker rmi -f ${IMAGE_NAME}:latest
10 | docker rmi -f ${IMAGE_NAME}:${TAG}
11 | fi
12 |
13 | docker build -t ${IMAGE_NAME} .
14 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:latest
15 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:${TAG}
16 | docker push ${IMAGE_NAME} -a
17 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-key/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-token/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-client/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:3000
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:3000
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-key/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:3000
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-token/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:3000
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-client/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-key/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-token/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-key/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-key/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | database=oauth2
3 | wait_time=10s
4 | password=StrongPassw0rd
5 |
6 | # wait for SQL Server to come up
7 | echo importing data will start in $wait_time...
8 | sleep $wait_time
9 | echo importing data...
10 |
11 | # run the init script to create the DB and the tables in /table
12 | /opt/mssql-tools/bin/sqlcmd -S 0.0.0.0 -U sa -P $password -i ./create_sqlserver.sql
13 |
14 |
--------------------------------------------------------------------------------
/mariadb/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -ex
4 |
5 | IMAGE_NAME="networknt/mariadb"
6 | TAG="${1}"
7 |
8 | if docker inspect ${IMAGE_NAME} &> /dev/null; then
9 | docker rmi -f ${IMAGE_NAME}:latest
10 | docker rmi -f ${IMAGE_NAME}:${TAG}
11 | fi
12 |
13 | docker build -t ${IMAGE_NAME} .
14 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:latest
15 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:${TAG}
16 | docker push ${IMAGE_NAME} -a
17 |
--------------------------------------------------------------------------------
/kafka/build.sh:
--------------------------------------------------------------------------------
1 |
2 | #!/bin/bash
3 |
4 | set -ex
5 |
6 | IMAGE_NAME="networknt/kafka"
7 | TAG="${1}"
8 |
9 | if docker inspect ${IMAGE_NAME} &> /dev/null; then
10 | docker rmi -f ${IMAGE_NAME}:latest
11 | docker rmi -f ${IMAGE_NAME}:${TAG}
12 | fi
13 |
14 | docker build -t ${IMAGE_NAME} .
15 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:latest
16 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:${TAG}
17 | docker push ${IMAGE_NAME} -a
18 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-client/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-provider/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-provider/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:3000
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-provider/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-client/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-provider/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-token/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-client/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-provider/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-token/cors.yml:
--------------------------------------------------------------------------------
1 | # Cors Http Handler Configuration. This is to support connection
2 | # from light-portal single page application which might served
3 | # from another domain/host. You may need to update allowedOrigins.
4 | ---
5 | description: Cors Http Handler
6 | enabled: true
7 | allowedOrigins:
8 | - http://localhost:8080
9 | allowedMethods:
10 | - GET
11 | - POST
12 | - PUT
13 | - DELETE
14 |
--------------------------------------------------------------------------------
/zookeeper/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -ex
4 |
5 | IMAGE_NAME="networknt/zookeeper"
6 | TAG="${1}"
7 |
8 | if docker inspect ${IMAGE_NAME} &> /dev/null; then
9 | docker rmi -f ${IMAGE_NAME}:latest
10 | docker rmi -f ${IMAGE_NAME}:${TAG}
11 | fi
12 |
13 | docker build -t ${IMAGE_NAME} .
14 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:latest
15 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:${TAG}
16 | docker push ${IMAGE_NAME} -a
17 |
--------------------------------------------------------------------------------
/email-mysql/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -ex
4 |
5 | IMAGE_NAME="networknt/email-mysql"
6 | TAG="${1}"
7 |
8 | if docker inspect ${IMAGE_NAME} &> /dev/null; then
9 | docker rmi -f ${IMAGE_NAME}:latest
10 | docker rmi -f ${IMAGE_NAME}:${TAG}
11 | fi
12 |
13 | docker build -t ${IMAGE_NAME} .
14 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:latest
15 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:${TAG}
16 | docker push ${IMAGE_NAME} -a
17 |
--------------------------------------------------------------------------------
/tram-oracle-cdcserver/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -ex
4 |
5 | IMAGE_NAME="networknt/eventuate-oracle-cdcserver"
6 | TAG="${1}"
7 |
8 | if docker inspect ${IMAGE_NAME} &> /dev/null; then
9 | docker rmi -f ${IMAGE_NAME}:latest
10 | docker rmi -f ${IMAGE_NAME}:${TAG}
11 | fi
12 |
13 | docker build -t ${IMAGE_NAME} .
14 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:latest
15 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:${TAG}
16 | docker push ${IMAGE_NAME} -a
17 |
--------------------------------------------------------------------------------
/docker-compose-mysql.yml:
--------------------------------------------------------------------------------
1 | version: "2"
2 | #
3 | # Services
4 | #
5 | services:
6 | mysql:
7 | build: ./mysql/
8 | ports:
9 | - 3306:3306
10 | environment:
11 | - MYSQL_ROOT_PASSWORD=rootpassword
12 | - MYSQL_USER=mysqluser
13 | - MYSQL_PASSWORD=mysqlpw
14 | networks:
15 | - localnet
16 |
17 |
18 |
19 | # Networks
20 | #
21 | networks:
22 | localnet:
23 | external: true
24 |
--------------------------------------------------------------------------------
/docker-compose-mariadb.yml:
--------------------------------------------------------------------------------
1 | version: "2"
2 | #
3 | # Services
4 | #
5 | services:
6 | mariadb:
7 | build: ./mariadb/
8 | ports:
9 | - 3306:3306
10 | environment:
11 | - MYSQL_ROOT_PASSWORD=rootpassword
12 | - MYSQL_USER=mysqluser
13 | - MYSQL_PASSWORD=mysqlpw
14 | networks:
15 | - localnet
16 |
17 |
18 |
19 | # Networks
20 | #
21 | networks:
22 | localnet:
23 | external: true
24 |
--------------------------------------------------------------------------------
/light-proxy/aws-lambda/config/lambda-invoker.yml:
--------------------------------------------------------------------------------
1 | # The aws region that is used to create the LambdaClient.
2 | region: us-east-2
3 | # The LogType of the execution log of Lambda. Set Tail to include and None to not include.
4 | logType: Tail
5 | # mapping of the endpoints to Lambda functions
6 | functions:
7 | /pets@get: PetsGetFunction
8 | /pets@post: PetsPostFunction
9 | /pets/{petId}@get: PetsPetIdGetFunction
10 | /pets/{petId}@delete: PetsPetIdDeleteFunction
11 |
--------------------------------------------------------------------------------
/swagger-bundler/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -ex
4 |
5 | CURRENT_DIR="${PWD##*/}"
6 | IMAGE_NAME="networknt/$CURRENT_DIR"
7 | TAG="${1}"
8 |
9 | if docker inspect ${IMAGE_NAME} &> /dev/null; then
10 | docker rmi -f ${IMAGE_NAME}:latest
11 | docker rmi -f ${IMAGE_NAME}:${TAG}
12 | fi
13 |
14 | docker build -t ${IMAGE_NAME} .
15 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:latest
16 | docker tag ${IMAGE_NAME} ${IMAGE_NAME}:${TAG}
17 | docker push ${IMAGE_NAME} -a
18 |
--------------------------------------------------------------------------------
/controller/basic-auth.yml:
--------------------------------------------------------------------------------
1 | # Basic Authentication Security Configuration for light-4j
2 | ---
3 | # Enable Basic Authentication Handler, default is false.
4 | enabled: false
5 | # usernames and passwords, the password can be encrypted like user2
6 | # As we are supporting multiple users, so leave the passwords in this file.
7 | users:
8 | - username: user1
9 | password: user1pass
10 | - username: user2
11 | password: CRYPT:08eXg9TmK604+w06RaBlsPQbplU1F1Ez5pkBO/hNr8w=
12 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-key/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-client/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-key/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-token/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-user/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-client/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-provider/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-service/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-token/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-user/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-client/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-key/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-service/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-token/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-user/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-key/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-token/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-user/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-key/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-user/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-provider/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-service/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-refresh-token/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-provider/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-client/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-provider/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-service/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-client/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-provider/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-service/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-token/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/docker-compose-prometheus.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 |
3 | services:
4 |
5 | prometheus:
6 | build: ./prometheus/
7 | networks:
8 | - localnet
9 | ports:
10 | - 9090:9090
11 |
12 |
13 | grafana:
14 | image: grafana/grafana:4.6.3
15 | ports:
16 | - "3000:3000"
17 | links:
18 | - prometheus
19 | networks:
20 | - localnet
21 |
22 | #
23 | # Networks
24 | #
25 | networks:
26 | localnet:
27 | # driver: bridge
28 | external: true
29 |
--------------------------------------------------------------------------------
/email-mysql/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "2"
2 | #
3 | # Before running this docker compose, please update both passwords
4 | #
5 | services:
6 | mysql:
7 | image: networknt/email-mysql:latest
8 | ports:
9 | - 3306:3306
10 | environment:
11 | - MYSQL_ROOT_PASSWORD=rootpassword
12 | - MYSQL_USER=mysqluser
13 | - MYSQL_PASSWORD=mysqlpw
14 | networks:
15 | - localnet
16 |
17 | # Networks
18 | #
19 | networks:
20 | localnet:
21 | external: true
22 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-refresh-token/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-refresh-token/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-refresh-token/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-refresh-token/openapi-validator.yml:
--------------------------------------------------------------------------------
1 | # This is specific OpenAPI validator configuration file. It is introduced to support multiple
2 | # frameworks in the same server instance and it is recommended. If this file cannot be found,
3 | # the generic validator.yml will be loaded as a fallback.
4 | ---
5 | # Enable request validation. Response validation is not done on the server but client.
6 | enabled: true
7 | # Log error message if validation error occurs
8 | logError: true
9 |
--------------------------------------------------------------------------------
/mariadb/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mariadb:10.3
2 | COPY replication.cnf /etc/mysql/conf.d
3 | COPY eventuate.sql /docker-entrypoint-initdb.d
4 | COPY oauth2.sql /docker-entrypoint-initdb.d
5 | COPY todo_db.sql /docker-entrypoint-initdb.d
6 | COPY saga.sql /docker-entrypoint-initdb.d
7 | COPY saga_example.sql /docker-entrypoint-initdb.d
8 | COPY user_management_ddl.sql /docker-entrypoint-initdb.d
9 | COPY create_tokenization.sql /docker-entrypoint-initdb.d
10 | COPY create_vault.sql /docker-entrypoint-initdb.d
11 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/spnego.yml:
--------------------------------------------------------------------------------
1 | # If SPNEGO/Kerberos debugging is enabled. Should be disabled for production.
2 | debug: true
3 | # If keytab file is used. If Microsoft AD is used, then set it to true
4 | useKeyTab: false
5 | # The keytab file location. It should be in the /config folder for Kubernetes
6 | keyTab: /Users/stevehu/networknt/light-oauth2/code/src/test/resources/config/krb_oauth2code_poc-allenc.keytab
7 | # The SPN principal name, normally it will be HTTP/{hostname}@domain
8 | principal: HTTP/localhost
9 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/spnego.yml:
--------------------------------------------------------------------------------
1 | # If SPNEGO/Kerberos debugging is enabled. Should be disabled for production.
2 | debug: true
3 | # If keytab file is used. If Microsoft AD is used, then set it to true
4 | useKeyTab: false
5 | # The keytab file location. It should be in the /config folder for Kubernetes
6 | keyTab: /Users/stevehu/networknt/light-oauth2/code/src/test/resources/config/krb_oauth2code_poc-allenc.keytab
7 | # The SPN principal name, normally it will be HTTP/{hostname}@domain
8 | principal: HTTP/localhost
9 |
--------------------------------------------------------------------------------
/light-proxy/swagger/config/proxy.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Reverse Proxy Handler Configuration
3 |
4 | # If HTTP 2.0 protocol will be used to connect to target servers
5 | http2Enabled: true
6 |
7 | # If TLS is enabled when connecting to the target servers
8 | httpsEnabled: true
9 |
10 | # Target URIs
11 | hosts: https://joy:8081,https://joy:8082,https://joy:8083
12 |
13 | # Connections per thread to the target servers
14 | connectionsPerThread: 20
15 |
16 | # Max request time in milliseconds before timeout
17 | maxRequestTime: 10000
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/spnego.yml:
--------------------------------------------------------------------------------
1 | # If SPNEGO/Kerberos debugging is enabled. Should be disabled for production.
2 | debug: true
3 | # If keytab file is used. If Microsoft AD is used, then set it to true
4 | useKeyTab: false
5 | # The keytab file location. It should be in the /config folder for Kubernetes
6 | keyTab: /Users/stevehu/networknt/light-oauth2/code/src/test/resources/config/krb_oauth2code_poc-allenc.keytab
7 | # The SPN principal name, normally it will be HTTP/{hostname}@domain
8 | principal: HTTP/localhost
9 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/spnego.yml:
--------------------------------------------------------------------------------
1 | # If SPNEGO/Kerberos debugging is enabled. Should be disabled for production.
2 | debug: true
3 | # If keytab file is used. If Microsoft AD is used, then set it to true
4 | useKeyTab: false
5 | # The keytab file location. It should be in the /config folder for Kubernetes
6 | keyTab: /Users/stevehu/networknt/light-oauth2/code/src/test/resources/config/krb_oauth2code_poc-allenc.keytab
7 | # The SPN principal name, normally it will be HTTP/{hostname}@domain
8 | principal: HTTP/localhost
9 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/spnego.yml:
--------------------------------------------------------------------------------
1 | # If SPNEGO/Kerberos debugging is enabled. Should be disabled for production.
2 | debug: true
3 | # If keytab file is used. If Microsoft AD is used, then set it to true
4 | useKeyTab: false
5 | # The keytab file location. It should be in the /config folder for Kubernetes
6 | keyTab: /Users/stevehu/networknt/light-oauth2/code/src/test/resources/config/krb_oauth2code_poc-allenc.keytab
7 | # The SPN principal name, normally it will be HTTP/{hostname}@domain
8 | principal: HTTP/localhost
9 |
--------------------------------------------------------------------------------
/tram-cdcserver/config/cdc.yml:
--------------------------------------------------------------------------------
1 | ---
2 | dbType: mysql
3 | jdbcUrl: jdbc:mysql://mysql:3306/eventuate?useSSL=false
4 | dbHost: mysql
5 | dbPort: 3306
6 | dbUser: root
7 | dbPass: rootpassword
8 | dbName: eventuate
9 | dbHistoryTopicName: db.history.topic
10 | sourceTableName: MESSAGE
11 | maximumPoolSize: 10
12 | kafka: kafka:9092
13 | zookeeper: zookeeper:2181
14 | leadershipLockPath: /eventuatelocal/cdc/leader
15 | mySqlBinLogClientName: MySqlBinLog
16 | oldDbHistoryTopicName: eventuate.local.cdc.my-sql-connector.offset.storage
17 |
--------------------------------------------------------------------------------
/email-mysql/README.md:
--------------------------------------------------------------------------------
1 | This is a docker image for mysql which is used for postfix email installation
2 |
3 | ## Databases
4 |
5 | ### postfix db
6 |
7 | postfix.sql is used to create hardware/emailserver tables.
8 |
9 |
10 | ## Compose
11 |
12 | There is a docker-compose.yml file in the directory. Please update the passwords
13 | for root and mysqluser before running the compose to start mysql.
14 |
15 | ```
16 | docker-compose up
17 | ```
18 |
19 | ## Console
20 |
21 | You can use mysql cli to connect to mysql database from your host.
22 |
--------------------------------------------------------------------------------
/mysql/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mysql:5.7
2 | COPY replication.cnf /etc/mysql/conf.d
3 | COPY eventuate.sql /docker-entrypoint-initdb.d
4 | COPY oauth2.sql /docker-entrypoint-initdb.d
5 | COPY todo_db.sql /docker-entrypoint-initdb.d
6 | COPY saga.sql /docker-entrypoint-initdb.d
7 | COPY saga_example.sql /docker-entrypoint-initdb.d
8 | COPY user_management_ddl.sql /docker-entrypoint-initdb.d
9 | COPY create_tokenization.sql /docker-entrypoint-initdb.d
10 | COPY create_vault.sql /docker-entrypoint-initdb.d
11 | COPY config_server_mysql.sql /docker-entrypoint-initdb.d
--------------------------------------------------------------------------------
/tram-cdcserver/config/kafka.yml:
--------------------------------------------------------------------------------
1 | ---
2 | acks: all
3 | retries: 0
4 | batchSize: 16384
5 | lingerms: 1
6 | bufferMemory: 33554432
7 | keySerializer: org.apache.kafka.common.serialization.StringSerializer
8 | valueSerializer: org.apache.kafka.common.serialization.StringSerializer
9 | keyDeSerializer: org.apache.kafka.common.serialization.StringDeserializer
10 | valueDeSerializer: org.apache.kafka.common.serialization.StringDeserializer
11 | sessionTimeout: 30000
12 | autoOffsetreset: earliest
13 | enableaAutocommit: false
14 | bootstrapServers: kafka:9092
15 |
--------------------------------------------------------------------------------
/sqlserver/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | database=oauth2
3 | wait_time=15s
4 | password=StrongPassw0rd
5 |
6 | # wait for SQL Server to come up
7 | echo importing data will start in $wait_time...
8 | sleep $wait_time
9 | echo importing data...
10 |
11 | # run the init script to create the DB and the tables in /table
12 | /opt/mssql-tools/bin/sqlcmd -S 0.0.0.0 -U sa -P $password -i ./create_oauth2.sql
13 |
14 | for entry in "table/*.sql"
15 | do
16 | echo executing $entry
17 | /opt/mssql-tools/bin/sqlcmd -S 0.0.0.0 -U sa -P $password -i $entry
18 | done
19 |
--------------------------------------------------------------------------------
/tram-oracle-cdcserver/config/kafka.yml:
--------------------------------------------------------------------------------
1 | ---
2 | acks: all
3 | retries: 0
4 | batchSize: 16384
5 | lingerms: 1
6 | bufferMemory: 33554432
7 | keySerializer: org.apache.kafka.common.serialization.StringSerializer
8 | valueSerializer: org.apache.kafka.common.serialization.StringSerializer
9 | keyDeSerializer: org.apache.kafka.common.serialization.StringDeserializer
10 | valueDeSerializer: org.apache.kafka.common.serialization.StringDeserializer
11 | sessionTimeout: 30000
12 | autoOffsetreset: earliest
13 | enableaAutocommit: false
14 | bootstrapServers: kafka:9092
15 |
--------------------------------------------------------------------------------
/tram-oracle-cdcserver/config2/kafka.yml:
--------------------------------------------------------------------------------
1 | ---
2 | acks: all
3 | retries: 0
4 | batchSize: 16384
5 | lingerms: 1
6 | bufferMemory: 33554432
7 | keySerializer: org.apache.kafka.common.serialization.StringSerializer
8 | valueSerializer: org.apache.kafka.common.serialization.StringSerializer
9 | keyDeSerializer: org.apache.kafka.common.serialization.StringDeserializer
10 | valueDeSerializer: org.apache.kafka.common.serialization.StringDeserializer
11 | sessionTimeout: 30000
12 | autoOffsetreset: earliest
13 | enableaAutocommit: false
14 | bootstrapServers: kafka:9092
15 |
--------------------------------------------------------------------------------
/controller/service.yml:
--------------------------------------------------------------------------------
1 |
2 | # Singleton service factory configuration/IoC injection
3 | singletons:
4 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
5 | - com.networknt.server.StartupHookProvider:
6 | - com.networknt.controller.ControllerStartupHook
7 |
8 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
9 | - com.networknt.server.ShutdownHookProvider:
10 | - com.networknt.controller.ControllerShutdownHook
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/mariadb/create_vault.sql:
--------------------------------------------------------------------------------
1 | /*
2 | This is the defult vault database and you can create as many as you want for the
3 | same tokenization instance.
4 | */
5 | DROP DATABASE IF EXISTS vault000;
6 | CREATE DATABASE vault000;
7 |
8 | GRANT ALL PRIVILEGES ON vault000.* TO 'mysqluser'@'%' WITH GRANT OPTION;
9 |
10 | USE vault000;
11 |
12 | DROP TABLE IF EXISTS token_vault;
13 |
14 | CREATE TABLE token_vault (
15 | id VARCHAR(1024) NOT NULL,
16 | value VARCHAR(1024) NOT NULL,
17 | PRIMARY KEY (id)
18 | )
19 | ENGINE=INNODB;
20 |
21 |
22 | CREATE INDEX value_idx ON token_vault(value);
23 |
--------------------------------------------------------------------------------
/mysql/create_vault.sql:
--------------------------------------------------------------------------------
1 | /*
2 | This is the defult vault database and you can create as many as you want for the
3 | same tokenization instance.
4 | */
5 | DROP DATABASE IF EXISTS vault000;
6 | CREATE DATABASE vault000;
7 |
8 | GRANT ALL PRIVILEGES ON vault000.* TO 'mysqluser'@'%' WITH GRANT OPTION;
9 |
10 | USE vault000;
11 |
12 | DROP TABLE IF EXISTS token_vault;
13 |
14 | CREATE TABLE token_vault (
15 | id VARCHAR(1024) NOT NULL,
16 | value VARCHAR(1024) NOT NULL,
17 | PRIMARY KEY (id)
18 | )
19 | ENGINE=INNODB;
20 |
21 |
22 | CREATE INDEX value_idx ON token_vault(value);
23 |
--------------------------------------------------------------------------------
/hybrid-services/config/kafka.yml:
--------------------------------------------------------------------------------
1 | ---
2 | description: Kafka producer and consumer properties setting
3 | acks: all
4 | retries: 0
5 | batchSize: 16384
6 | lingerms: 1
7 | bufferMemory: 33554432
8 | keySerializer: org.apache.kafka.common.serialization.StringSerializer
9 | valueSerializer: org.apache.kafka.common.serialization.StringSerializer
10 | keyDeSerializer: org.apache.kafka.common.serialization.StringDeserializer
11 | valueDeSerializer: org.apache.kafka.common.serialization.StringDeserializer
12 | sessionTimeout: 30000
13 | autoOffsetreset: earliest
14 | enableaAutocommit: false
15 | bootstrapServers: kafka:9092
16 |
--------------------------------------------------------------------------------
/kafka/run-kafka.sh:
--------------------------------------------------------------------------------
1 | #! /bin/bash -e
2 |
3 | if [ -z "$ADVERTISED_HOST_NAME" ] ; then
4 | echo ADVERTISED_HOST_NAME is blank or not set. Finding IP address
5 | export ADVERTISED_HOST_NAME=$(ip addr | grep 'BROADCAST' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
6 | fi
7 |
8 | echo ADVERTISED_HOST_NAME=${ADVERTISED_HOST_NAME}
9 |
10 | sed -i "s/ADVERTISED_HOST_NAME/${ADVERTISED_HOST_NAME?}/" /usr/local/kafka-config/server.properties
11 |
12 | sed -i "s/ZOOKEEPER_SERVERS/${ZOOKEEPER_SERVERS?}/" /usr/local/kafka-config/server.properties
13 |
14 | bin/kafka-server-start.sh /usr/local/kafka-config/server.properties
15 |
--------------------------------------------------------------------------------
/light-proxy/README.md:
--------------------------------------------------------------------------------
1 | This folder contains configuration folders for different utilization with light-proxy to build docker images.
2 |
3 | ### aws-lambda
4 |
5 | Deploy the light-proxy to the AWS and proxy to the Lambda funcations with all the cross-cutting concerns addressed. It is to replace the API Gateway as the entry point for the Lambda functions.
6 |
7 | The openapi.yaml is from the petstore from model-config/rest/openapi/petstore folder and the lambda is generated from model-config/lambda/petstore
8 |
9 | This folder is not used anymore as the project generated will have a proxy folder with configuration and the script to build docker image.
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/docker-compose-zookeeper-kafka.yml:
--------------------------------------------------------------------------------
1 | # Zookeeper and Kafka for local development
2 | version: "2"
3 | services:
4 | zookeeper:
5 | image: networknt/zookeeper:latest
6 | ports:
7 | - 2181:2181
8 | - 2888:2888
9 | networks:
10 | - localnet
11 | kafka:
12 | image: networknt/kafka:latest
13 | ports:
14 | - 9092:9092
15 | links:
16 | - zookeeper
17 | environment:
18 | - ADVERTISED_HOST_NAME=${DOCKER_HOST_IP}
19 | - KAFKA_HEAP_OPTS=-Xmx320m -Xms320m
20 | - ZOOKEEPER_SERVERS=zookeeper:2181
21 | networks:
22 | - localnet
23 |
24 | # Networks
25 | #
26 | networks:
27 | localnet:
28 | external: true
29 |
--------------------------------------------------------------------------------
/light-codegen/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM maven:3.6.1-jdk-11-slim
2 |
3 | MAINTAINER Steve Hu
4 |
5 | RUN set -x \
6 | && mkdir -p /light-api/out \
7 | && wget -qO- https://api.github.com/repos/networknt/light-codegen/tarball/master | tar zxv -C /light-api \
8 | && mv /light-api/networknt-light-codegen* /light-api/light-codegen/ \
9 | && rm -f .temporary
10 |
11 | VOLUME /light-api/out
12 |
13 | WORKDIR /light-api/out
14 |
15 | COPY docker-entrypoint.sh /
16 |
17 | RUN cd /light-api/light-codegen && \
18 | mvn package -DskipTests && \
19 | rm -rf ${MAVEN_HOME}/.m2/repository
20 |
21 | ENTRYPOINT ["/docker-entrypoint.sh"]
22 |
23 | CMD ["help"]
24 |
--------------------------------------------------------------------------------
/postgres/postgresql.conf.sample:
--------------------------------------------------------------------------------
1 | # LOGGING
2 | # log_min_error_statement = fatal
3 | # log_min_messages = DEBUG1
4 |
5 | # CONNECTION
6 | listen_addresses = '*'
7 |
8 | # MODULES
9 | shared_preload_libraries = 'decoderbufs'
10 |
11 | # REPLICATION
12 | wal_level = logical # minimal, archive, hot_standby, or logical (change requires restart)
13 | max_wal_senders = 4 # max number of walsender processes (change requires restart)
14 | #wal_keep_segments = 4 # in logfile segments, 16MB each; 0 disables
15 | #wal_sender_timeout = 60s # in milliseconds; 0 disables
16 | max_replication_slots = 4 # max number of replication slots (change requires restart)
--------------------------------------------------------------------------------
/mysql/saga_example.sql:
--------------------------------------------------------------------------------
1 | create database customerorder;
2 |
3 | GRANT ALL PRIVILEGES ON customerorder.* TO 'mysqluser'@'%' WITH GRANT OPTION;
4 |
5 | use customerorder;
6 |
7 | DROP table IF EXISTS customer;
8 | DROP table IF EXISTS customer_order;
9 | DROP table IF EXISTS order_detail;
10 |
11 |
12 | CREATE TABLE customer (
13 | customer_id long,
14 | name varchar(255),
15 | creditLimit numeric
16 | );
17 |
18 | CREATE TABLE customer_order (
19 | customer_id long,
20 | order_id long,
21 | orderTotal numeric
22 | );
23 |
24 |
25 | CREATE TABLE order_detail (
26 | order_id long ,
27 | customer_id long,
28 | state varchar(50),
29 | amount numeric
30 |
31 | );
32 |
33 |
--------------------------------------------------------------------------------
/mariadb/saga_example.sql:
--------------------------------------------------------------------------------
1 | create database customerorder;
2 |
3 | GRANT ALL PRIVILEGES ON customerorder.* TO 'mysqluser'@'%' WITH GRANT OPTION;
4 |
5 | use customerorder;
6 |
7 | DROP table IF EXISTS customer;
8 | DROP table IF EXISTS customer_order;
9 | DROP table IF EXISTS order_detail;
10 |
11 |
12 | CREATE TABLE customer (
13 | customer_id long,
14 | name varchar(255),
15 | creditLimit numeric
16 | );
17 |
18 | CREATE TABLE customer_order (
19 | customer_id long,
20 | order_id long,
21 | orderTotal numeric
22 | );
23 |
24 |
25 | CREATE TABLE order_detail (
26 | order_id long ,
27 | customer_id long,
28 | state varchar(50),
29 | amount numeric
30 |
31 | );
32 |
33 |
--------------------------------------------------------------------------------
/swagger-bundler/README.md:
--------------------------------------------------------------------------------
1 | # [swagger-bundler](https://github.com/networknt/swagger-bundler)
2 |
3 | Dockerfile for running Swagger Bunlder.
4 |
5 | This allows users to bundle multiple YAML files together into one self-contained file
6 | as input for light-codegen. By using docker, you don't need to clone and build locally.
7 |
8 | To build docker image and push it to docker hub, you have to make sure that there
9 | is no existing image on your build server. If there are some older version of
10 | light-codegen, you need to remove them using
11 |
12 | ```
13 | docker rmi -f imageId
14 | ```
15 |
16 | And then run build.sh with a version number as the parameter.
17 |
18 | ```
19 | ./build.sh 0.1.1
20 | ```
21 |
--------------------------------------------------------------------------------
/tokenization/config/datasource.yml:
--------------------------------------------------------------------------------
1 | tokenization:
2 | jdbcUrl: jdbc:mysql://198.55.49.187:3306/tokenization?useSSL=false
3 | username: mysqluser
4 | password: mysqlpw
5 | parameters:
6 | maximumPoolSize: 2
7 | useServerPrepStmts: true
8 | cachePrepStmts: true
9 | cacheCallableStmts: true
10 | prepStmtCacheSize: 40
11 | prepStmtCacheSqlLimit: 20
12 | vault000:
13 | jdbcUrl: jdbc:mysql://198.55.49.187:3306/vault000?useSSL=false
14 | username: mysqluser
15 | password: mysqlpw
16 | parameters:
17 | maximumPoolSize: 2
18 | useServerPrepStmts: true
19 | cachePrepStmts: true
20 | cacheCallableStmts: true
21 | prepStmtCacheSize: 40
22 | prepStmtCacheSqlLimit: 20
23 |
--------------------------------------------------------------------------------
/controller/mask.yml:
--------------------------------------------------------------------------------
1 | description: mask configuration for different type of inputs
2 | string:
3 | uri:
4 | # password=[^&]*: password=******
5 | # number=\d{1,16}: number=----------------
6 | # sin=\d{1,9}: sin=masked
7 | regex:
8 | queryParameter:
9 | # accountNo: "(.*)"
10 | requestHeader:
11 | # header1: "(.*)"
12 | # header2: "(.*)"
13 | responseHeader:
14 | # header3: "(.*)"
15 | requestCookies:
16 | # userName: "(.*)"
17 | responseCookies:
18 | # sensitiveData: "(.*)"
19 | json:
20 | requestBody:
21 | # "$.*.email": "(.*)"
22 | # "$.product[*].item[*].name": "(.*)"
23 | responseBody:
24 | # "$.product[*].item[*].name": "(.*)"
25 | # "$.product[*].item[*].name[0]": "(.*)"
--------------------------------------------------------------------------------
/light-codegen/README.md:
--------------------------------------------------------------------------------
1 | # [light-codegen](https://github.com/networknt/light-codegen)
2 |
3 | Dockerfile for running Light Codegen.
4 |
5 | This allows users to generate code without cloning/building light-codegenJava on
6 | the host machine. It is also helpful if you can't, or don't want to, install Bash
7 | in your environment.
8 |
9 | To build docker image and push it to docker hub, you have to make sure that there
10 | is no existing image on your build server. If there are some older version of
11 | light-codegen, you need to remove them using
12 |
13 | ```
14 | docker rmi -f imageId
15 | ```
16 |
17 | And then run build.sh with a version number as the parameter.
18 |
19 | ```
20 | ./build.sh 1.3.4
21 | ```
22 |
--------------------------------------------------------------------------------
/hybrid-services/config/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
--------------------------------------------------------------------------------
/docker-compose-consul.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 |
3 | services:
4 |
5 | consul:
6 | image: consul:1.6.4
7 | command: "agent -server -log-level TRACE -data-dir /tmp/consul -bootstrap -ui -client=0.0.0.0"
8 | container_name: consul
9 | environment:
10 | - CONSUL_LOCAL_CONFIG={"acl_datacenter":"dc1","acl_default_policy":"allow","acl_down_policy":"extend-cache","acl_master_token":"the_one_ring","bootstrap_expect":1,"datacenter":"dc1","data_dir":"/usr/local/bin/consul.d/data","server":true}
11 | networks:
12 | - localnet
13 | ports:
14 | - 8500:8500
15 | - 8400:8400
16 | - 8300:8300
17 | #
18 | # Networks
19 | #
20 | networks:
21 | localnet:
22 | # driver: bridge
23 | external: true
24 |
--------------------------------------------------------------------------------
/docker-compose-schema-registry.yml:
--------------------------------------------------------------------------------
1 | version: "2"
2 | #
3 | # Services
4 | #
5 | services:
6 | schema-registry:
7 | image: confluentinc/cp-schema-registry:5.3.1
8 | ports:
9 | - 8081:8081
10 | environment:
11 | - SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=38.113.162.53:2181
12 | - SCHEMA_REGISTRY_HOST_NAME=schema-registry
13 | - SCHEMA_REGISTRY_LISTENERS=http://0.0.0.0:8081
14 | networks:
15 | - localnet
16 |
17 | light-proxy:
18 | image: networknt/light-proxy:latest
19 | ports:
20 | - 8080:8080
21 | volumes:
22 | - ./light-proxy/schema-registry:/config
23 | links:
24 | - schema-registry
25 | networks:
26 | - localnet
27 |
28 | # Networks
29 | #
30 | networks:
31 | localnet:
32 | external: true
33 |
--------------------------------------------------------------------------------
/docker-compose-logging.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 | elasticsearch:
4 | build: elasticsearch/
5 | ports:
6 | - "9200:9200"
7 | - "9300:9300"
8 | environment:
9 | - discovery.type=single-node
10 | - xpack.security.enabled=false
11 | networks:
12 | - localnet
13 | logstash:
14 | build: logstash/
15 | command: -f /etc/logstash/conf.d/
16 | volumes:
17 | - ./logstash/config:/etc/logstash/conf.d
18 | ports:
19 | - "5000:5000"
20 | networks:
21 | - localnet
22 | kibana:
23 | build: kibana/
24 | volumes:
25 | - ./kibana/config/:/opt/kibana/config/
26 | ports:
27 | - "5601:5601"
28 | networks:
29 | - localnet
30 |
31 | networks:
32 | localnet:
33 | external: true
34 |
35 |
--------------------------------------------------------------------------------
/light-proxy/schema-registry/proxy.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Reverse Proxy Handler Configuration
3 |
4 | # If HTTP 2.0 protocol will be used to connect to target servers
5 | http2Enabled: false
6 |
7 | # If TLS is enabled when connecting to the target servers
8 | httpsEnabled: false
9 |
10 | # Target URIs
11 | hosts: http://schema-registry:8081
12 |
13 | # Connections per thread to the target servers
14 | connectionsPerThread: 20
15 |
16 | # Max request time in milliseconds before timeout
17 | maxRequestTime: 1000
18 |
19 | # Rewrite Host Header with the target host and port and write X_FORWARDED_HOST with original host
20 | rewriteHostHeader: true
21 |
22 | # Reuse XForwarded for the target XForwarded header
23 | reuseXForwarded: false
24 |
25 | # Max Connection Retries
26 | maxConnectionRetries: 3
27 |
--------------------------------------------------------------------------------
/swagger-bundler/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM jimschubert/8-jdk-alpine-mvn:latest
2 |
3 | MAINTAINER Steve Hu
4 |
5 | RUN set -x \
6 | && mkdir -p /light-api/out \
7 | && apk add --no-cache bash \
8 | && apk add --no-cache --virtual .temporary wget \
9 | && wget -qO- https://api.github.com/repos/networknt/swagger-bundler/tarball/master | tar zxv -C /light-api \
10 | && mv /light-api/networknt-swagger-bundler* /light-api/swagger-bundler/ \
11 | && apk del .temporary
12 |
13 | VOLUME /light-api/out
14 |
15 | WORKDIR /light-api/out
16 |
17 | COPY docker-entrypoint.sh /
18 |
19 | RUN cd /light-api/swagger-bundler && \
20 | mvn package -DskipTests && \
21 | rm -rf ${MAVEN_HOME}/.m2/repository
22 |
23 | ENTRYPOINT ["/docker-entrypoint.sh"]
24 |
25 | CMD ["help"]
26 |
--------------------------------------------------------------------------------
/docker-compose-hybrid-service.yml:
--------------------------------------------------------------------------------
1 | version: "2"
2 | #
3 | # Services
4 | #
5 | services:
6 |
7 |
8 | mysql:
9 | build: ./mysql/
10 | ports:
11 | - 3306:3306
12 | environment:
13 | - MYSQL_ROOT_PASSWORD=rootpassword
14 | - MYSQL_USER=mysqluser
15 | - MYSQL_PASSWORD=mysqlpw
16 | networks:
17 | - localnet
18 |
19 | hybrid-service:
20 | build: ./hybrid-services/
21 | volumes:
22 | - ./hybrid-services/config:/config
23 | - ./hybrid-services/service:/service
24 | ports:
25 | - 8443:8443
26 | links:
27 | - mysql
28 | networks:
29 | - localnet
30 |
31 |
32 | # Networks
33 | #
34 | networks:
35 | localnet:
36 | # driver: bridge
37 | external: true
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-provider/service.yml:
--------------------------------------------------------------------------------
1 |
2 | # Singleton service factory configuration/IoC injection
3 | singletons:
4 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
5 | - com.networknt.server.StartupHookProvider:
6 | - com.networknt.oauth.cache.CacheStartupHookProvider
7 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
8 | - com.networknt.server.ShutdownHookProvider:
9 | - com.networknt.oauth.cache.CacheShutdownHookProvider
10 |
11 | - javax.sql.DataSource:
12 | - com.zaxxer.hikari.HikariDataSource:
13 | jdbcUrl: jdbc:postgresql://postgresdb:5432/oauth2
14 | username: postgres
15 | password: my-secret-pw
16 | maximumPoolSize: 2
17 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-provider/service.yml:
--------------------------------------------------------------------------------
1 |
2 | # Singleton service factory configuration/IoC injection
3 | singletons:
4 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
5 | - com.networknt.server.StartupHookProvider:
6 | - com.networknt.oauth.cache.CacheStartupHookProvider
7 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
8 | - com.networknt.server.ShutdownHookProvider:
9 | - com.networknt.oauth.cache.CacheShutdownHookProvider
10 |
11 | - javax.sql.DataSource:
12 | - com.zaxxer.hikari.HikariDataSource:
13 | jdbcUrl: jdbc:sqlserver://sqlserver:1433;databaseName=oauth2
14 | username: sa
15 | password: StrongPassw0rd
16 | maximumPoolSize: 2
17 |
--------------------------------------------------------------------------------
/controller/metrics.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Metrics handler configuration
3 |
4 | # If metrics handler is enabled or not
5 | enabled: ${metrics.enabled:false}
6 | # If metrics handler is enable for JVM MBean or not
7 | enableJVMMonitor: ${metrics.enableJVMMonitor:false}
8 | # influxdb protocal can be http, https
9 | influxdbProtocol: ${metrics.influxdbProtocol:http}
10 | # influxdb hostname
11 | influxdbHost: ${metrics.influxdbHost:localhost}
12 | # influxdb port number
13 | influxdbPort: ${metrics.influxdbPort:8086}
14 | # influxdb database name
15 | influxdbName: ${metrics.influxdbName:metrics}
16 | # influxdb user
17 | influxdbUser: ${metrics.influxdbUser:admin}
18 | # influx db password
19 | influxdbPass: ${metrics.influxdbPass:admin}
20 | # report and reset metrics in minutes.
21 | reportInMinutes: ${metrics.reportInMinutes:1}
22 |
--------------------------------------------------------------------------------
/light-proxy/openapi/config/proxy.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Reverse Proxy Handler Configuration
3 |
4 | # If HTTP 2.0 protocol will be used to connect to target servers
5 | http2Enabled: true
6 |
7 | # If TLS is enabled when connecting to the target servers
8 | httpsEnabled: true
9 |
10 | # Target URIs
11 | hosts: https://freedom:8081,https://freedom:8082,https://freedom:8083
12 |
13 | # Connections per thread to the target servers
14 | connectionsPerThread: 20
15 |
16 | # Max request time in milliseconds before timeout
17 | maxRequestTime: 1000
18 |
19 | # Rewrite Host Header with the target host and port and write X_FORWARDED_HOST with original host
20 | rewriteHostHeader: true
21 |
22 | # Reuse XForwarded for the target XForwarded header
23 | reuseXForwarded: false
24 |
25 | # Max Connection Retries
26 | maxConnectionRetries: 3
27 |
--------------------------------------------------------------------------------
/light-proxy/aws-lambda/config/proxy.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Reverse Proxy Handler Configuration
3 |
4 | # If HTTP 2.0 protocol will be used to connect to target servers
5 | http2Enabled: true
6 |
7 | # If TLS is enabled when connecting to the target servers
8 | httpsEnabled: true
9 |
10 | # Target URIs
11 | hosts: https://freedom:8081,https://freedom:8082,https://freedom:8083
12 |
13 | # Connections per thread to the target servers
14 | connectionsPerThread: 20
15 |
16 | # Max request time in milliseconds before timeout
17 | maxRequestTime: 1000
18 |
19 | # Rewrite Host Header with the target host and port and write X_FORWARDED_HOST with original host
20 | rewriteHostHeader: true
21 |
22 | # Reuse XForwarded for the target XForwarded header
23 | reuseXForwarded: false
24 |
25 | # Max Connection Retries
26 | maxConnectionRetries: 3
27 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-provider/service.yml:
--------------------------------------------------------------------------------
1 |
2 | # Singleton service factory configuration/IoC injection
3 | singletons:
4 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
5 | - com.networknt.server.StartupHookProvider:
6 | - com.networknt.oauth.cache.CacheStartupHookProvider
7 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
8 | - com.networknt.server.ShutdownHookProvider:
9 | - com.networknt.oauth.cache.CacheShutdownHookProvider
10 |
11 | - javax.sql.DataSource:
12 | - com.zaxxer.hikari.HikariDataSource:
13 | DriverClassName: oracle.jdbc.pool.OracleDataSource
14 | jdbcUrl: jdbc:oracle:thin:@oracledb:1521:XE
15 | username: SYSTEM
16 | password: oracle
17 | maximumPoolSize: 2
18 |
--------------------------------------------------------------------------------
/api/README.md:
--------------------------------------------------------------------------------
1 | This folder contains description for docker-compose-api.yml file for api VM
2 | in the parent folder.
3 |
4 | ## DOCKER_HOST_IP
5 |
6 | Before starting the docker-compose command, please make sure the the following command
7 | is executed on the host.
8 |
9 | ```
10 | export DOCKER_HOST_IP=XX.XX.XX.XX
11 | ```
12 |
13 | or put the command in .profile under your user directory.
14 |
15 | ## To start all services
16 |
17 | To start all services in background, start with -d option. Otherwise, remove the -d
18 |
19 | ```
20 | cd ~/networknt
21 | cd light-docker
22 | docker-compose -f docker-compose-api.yml up -d
23 | ```
24 |
25 | ## Components
26 |
27 | * Jenkins Master
28 | * Gogs
29 | * Mysql
30 | * Arango
31 | * Consul
32 | * Confluent
33 | * ELK
34 | * Influx and Grafana
35 | * CDC server
36 | * Hybrid-query server
37 | * Hybrid-command server
38 |
39 |
40 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-key/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:postgresql://postgresdb:5432/oauth2
16 | username: postgres
17 | password: my-secret-pw
18 | maximumPoolSize: 2
19 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-user/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:postgresql://postgresdb:5432/oauth2
16 | username: postgres
17 | password: my-secret-pw
18 | maximumPoolSize: 2
19 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-client/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:postgresql://postgresdb:5432/oauth2
16 | username: postgres
17 | password: my-secret-pw
18 | maximumPoolSize: 2
19 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-service/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:postgresql://postgresdb:5432/oauth2
16 | username: postgres
17 | password: my-secret-pw
18 | maximumPoolSize: 2
19 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-token/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:postgresql://postgresdb:5432/oauth2
16 | username: postgres
17 | password: my-secret-pw
18 | maximumPoolSize: 2
19 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-refresh-token/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:postgresql://postgresdb:5432/oauth2
16 | username: postgres
17 | password: my-secret-pw
18 | maximumPoolSize: 2
19 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-client/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:sqlserver://sqlserver:1433;databaseName=oauth2
16 | username: sa
17 | password: StrongPassw0rd
18 | maximumPoolSize: 2
19 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-key/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:sqlserver://sqlserver:1433;databaseName=oauth2
16 | username: sa
17 | password: StrongPassw0rd
18 | maximumPoolSize: 2
19 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-token/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:sqlserver://sqlserver:1433;databaseName=oauth2
16 | username: sa
17 | password: StrongPassw0rd
18 | maximumPoolSize: 2
19 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-user/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:sqlserver://sqlserver:1433;databaseName=oauth2
16 | username: sa
17 | password: StrongPassw0rd
18 | maximumPoolSize: 2
19 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-service/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:sqlserver://sqlserver:1433;databaseName=oauth2
16 | username: sa
17 | password: StrongPassw0rd
18 | maximumPoolSize: 2
19 |
20 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-refresh-token/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:sqlserver://sqlserver:1433;databaseName=oauth2
16 | username: sa
17 | password: StrongPassw0rd
18 | maximumPoolSize: 2
19 |
20 |
--------------------------------------------------------------------------------
/docker-compose-discovery.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 |
3 | services:
4 | apia:
5 | image: networknt/com.networknt.aa-1.0.0
6 | ports:
7 | - "7441:7441"
8 | environment:
9 | - STATUS_HOST_IP=${DOCKER_HOST_IP}
10 | networks:
11 | - localnet
12 |
13 | apib:
14 | image: networknt/com.networknt.ab-1.0.0
15 | ports:
16 | - "7442:7442"
17 | environment:
18 | - STATUS_HOST_IP=${DOCKER_HOST_IP}
19 | networks:
20 | - localnet
21 |
22 | apic:
23 | image: networknt/com.networknt.ac-1.0.0
24 | ports:
25 | - "7443:7443"
26 | environment:
27 | - STATUS_HOST_IP=${DOCKER_HOST_IP}
28 | networks:
29 | - localnet
30 |
31 | apid:
32 | image: networknt/com.networknt.ad-1.0.0
33 | ports:
34 | - "7444:7444"
35 | environment:
36 | - STATUS_HOST_IP=${DOCKER_HOST_IP}
37 | networks:
38 | - localnet
39 | networks:
40 | localnet:
41 | # driver: bridge
42 | external: true
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-key/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | DriverClassName: oracle.jdbc.pool.OracleDataSource
16 | jdbcUrl: jdbc:oracle:thin:@oracledb:1521:XE
17 | username: SYSTEM
18 | password: oracle
19 | maximumPoolSize: 2
20 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-client/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | DriverClassName: oracle.jdbc.pool.OracleDataSource
16 | jdbcUrl: jdbc:oracle:thin:@oracledb:1521:XE
17 | username: SYSTEM
18 | password: oracle
19 | maximumPoolSize: 2
20 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-service/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | DriverClassName: oracle.jdbc.pool.OracleDataSource
16 | jdbcUrl: jdbc:oracle:thin:@oracledb:1521:XE
17 | username: SYSTEM
18 | password: oracle
19 | maximumPoolSize: 2
20 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-token/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | DriverClassName: oracle.jdbc.pool.OracleDataSource
16 | jdbcUrl: jdbc:oracle:thin:@oracledb:1521:XE
17 | username: SYSTEM
18 | password: oracle
19 | maximumPoolSize: 2
20 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-user/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | DriverClassName: oracle.jdbc.pool.OracleDataSource
16 | jdbcUrl: jdbc:oracle:thin:@oracledb:1521:XE
17 | username: SYSTEM
18 | password: oracle
19 | maximumPoolSize: 2
20 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-refresh-token/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | DriverClassName: oracle.jdbc.pool.OracleDataSource
16 | jdbcUrl: jdbc:oracle:thin:@oracledb:1521:XE
17 | username: SYSTEM
18 | password: oracle
19 | maximumPoolSize: 2
20 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-provider/service.yml:
--------------------------------------------------------------------------------
1 |
2 | # Singleton service factory configuration/IoC injection
3 | singletons:
4 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
5 | - com.networknt.server.StartupHookProvider:
6 | - com.networknt.oauth.cache.CacheStartupHookProvider
7 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
8 | - com.networknt.server.ShutdownHookProvider:
9 | - com.networknt.oauth.cache.CacheShutdownHookProvider
10 | - javax.sql.DataSource:
11 | - com.zaxxer.hikari.HikariDataSource:
12 | jdbcUrl: jdbc:mariadb://mariadb:3306/oauth2?useSSL=false
13 | username: mysqluser
14 | password: mysqlpw
15 | maximumPoolSize: 2
16 | useServerPrepStmts: true
17 | cachePrepStmts: true
18 | cacheCallableStmts: true
19 | prepStmtCacheSize: 4096
20 | prepStmtCacheSqlLimit: 2048
21 |
--------------------------------------------------------------------------------
/postgres/docker-entrypoint-initdb.d/initialize_db_postgres.sql:
--------------------------------------------------------------------------------
1 |
2 | DROP table IF EXISTS events;
3 | DROP table IF EXISTS entities;
4 | DROP table IF EXISTS snapshots;
5 |
6 | create table events (
7 | event_id varchar(1000),
8 | event_type varchar(1000),
9 | event_data varchar(1000) NOT NULL,
10 | entity_type VARCHAR(1000) NOT NULL,
11 | entity_id VARCHAR(1000) NOT NULL,
12 | triggering_event VARCHAR(1000),
13 | PRIMARY KEY (event_id)
14 | );
15 |
16 | create table entities (
17 | entity_type VARCHAR(1000),
18 | entity_id VARCHAR(1000),
19 | entity_version VARCHAR(1000) NOT NULL,
20 | PRIMARY KEY(entity_type, entity_id)
21 | );
22 |
23 | create table snapshots (
24 | entity_type VARCHAR(1000),
25 | entity_id VARCHAR(1000),
26 | entity_version VARCHAR(1000),
27 | snapshot_type VARCHAR(1000) NOT NULL,
28 | snapshot_json VARCHAR(1000) NOT NULL,
29 | triggering_events VARCHAR(1000),
30 | PRIMARY KEY(entity_type, entity_id, entity_version)
31 | );
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-provider/service.yml:
--------------------------------------------------------------------------------
1 |
2 | # Singleton service factory configuration/IoC injection
3 | singletons:
4 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
5 | - com.networknt.server.StartupHookProvider:
6 | - com.networknt.oauth.cache.CacheStartupHookProvider
7 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
8 | - com.networknt.server.ShutdownHookProvider:
9 | - com.networknt.oauth.cache.CacheShutdownHookProvider
10 |
11 | - javax.sql.DataSource:
12 | - com.zaxxer.hikari.HikariDataSource:
13 | jdbcUrl: jdbc:mysql://mysqldb:3306/oauth2?useSSL=false&disableMariaDbDriver
14 | username: mysqluser
15 | password: mysqlpw
16 | maximumPoolSize: 2
17 | useServerPrepStmts: true
18 | cachePrepStmts: true
19 | cacheCallableStmts: true
20 | prepStmtCacheSize: 4096
21 | prepStmtCacheSqlLimit: 2048
22 |
--------------------------------------------------------------------------------
/mysql/config_server_mysql.sql:
--------------------------------------------------------------------------------
1 | DROP DATABASE IF EXISTS config;
2 | CREATE DATABASE config;
3 |
4 | GRANT ALL PRIVILEGES ON config.* TO 'mysqluser'@'%' WITH GRANT OPTION;
5 |
6 | USE config;
7 |
8 | DROP TABLE IF EXISTS config_value;
9 | DROP TABLE IF EXISTS config_service;
10 |
11 |
12 | CREATE TABLE config_value (
13 | config_key VARCHAR(256) NOT NULL,
14 | config_value VARCHAR(256) NOT NULL,
15 | config_service_id VARCHAR(256) NOT NULL,
16 | PRIMARY KEY (config_key, config_service_id)
17 | )
18 | ENGINE=INNODB;
19 |
20 |
21 |
22 |
23 | CREATE TABLE config_service (
24 | config_service_id VARCHAR(256) NOT NULL,
25 | service_profile VARCHAR(256) NOT NULL,
26 | service_id VARCHAR(256) NOT NULL,
27 | service_version VARCHAR(256) ,
28 | encryptio_algorithm VARCHAR(32),
29 | encryption_salt VARCHAR(256),
30 | template_repository VARCHAR(256) ,
31 | service_owner VARCHAR(32),
32 | refreshed varchar(1) DEFAULT 'N',
33 | PRIMARY KEY ( config_service_id)
34 | )
35 | ENGINE=INNODB;
36 |
--------------------------------------------------------------------------------
/controller/config.yml:
--------------------------------------------------------------------------------
1 |
2 | #----------------------------------------------------------------------------------------------------------------
3 | # Scalable Config file
4 | #
5 | # This file serves as a configuration extension platform. Functions are list below:
6 | #
7 | # [1] exclusionConfigFileList: this configuration will be used by the light-4j/config module, when reading
8 | # config files. it allows the listing of files which will be excluded from parameterized values set at
9 | # the command-line or in a values.yml file
10 | # Notes:
11 | # File name included in the list will be excluded
12 | # If the file is not provided, the config module will safely ignore it
13 | # Simply list the config file names without extensions(.json, .yaml, .yml)
14 | #----------------------------------------------------------------------------------------------------------------
15 | exclusionConfigFileList:
16 | - openapi
17 | - values
18 | - status
19 |
20 | decryptorClass: com.networknt.decrypt.AESDecryptor
--------------------------------------------------------------------------------
/mariadb/README.md:
--------------------------------------------------------------------------------
1 | This is a docker image for mariadb which is used for multiple places in side of
2 | infrastructure of light-*-4j frameworks and applications.
3 |
4 | ## Databases
5 |
6 | ### enable replication
7 |
8 | light-eventuate-4j uses this instance for CDC (change data capture) with mariadb
9 | binlog. The replication.cnf is the config file to enable binlog.
10 |
11 | ### eventuate db
12 |
13 | eventuate.sql is used to create eventuate db for the event store of light-eventuate-4j framework.
14 |
15 | ### oauth2 db
16 |
17 | oauth2.sql is used to create tables for light-oauth2 service providers.
18 |
19 | ### todo db
20 |
21 | todo_db.sql is used to create todo_list example database tables.
22 |
23 |
24 | ## Compose
25 |
26 | There is a docker-compose.yml file in the directory. Please update the passwords
27 | for root and mysqluser before running the compose to start mariadb.
28 |
29 | ```
30 | docker-compose up
31 | ```
32 |
33 | ## Console
34 |
35 | You can use mariadb cli to connect to mysql database from your host.
36 |
37 |
--------------------------------------------------------------------------------
/light-proxy/swagger/config/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-code/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-key/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-user/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/mysql/config/oauth2-code/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-code/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-key/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-token/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-user/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-key/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-client/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-service/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-token/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-client/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-service/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-client/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-code/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-service/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-token/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-user/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-client/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-code/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-key/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-service/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-token/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/sqlserver/config/oauth2-user/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-refresh-token/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/oracle/config/oauth2-refresh-token/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-oauth2/postgres/config/oauth2-refresh-token/security.yml:
--------------------------------------------------------------------------------
1 | # Security configuration in light framework.
2 | ---
3 | # Enable JWT verification flag.
4 | enableVerifyJwt: false
5 |
6 | # Enable JWT scope verification. Only valid when enableVerifyJwt is true.
7 | enableVerifyScope: true
8 |
9 | # User for test only. should be always be false on official environment.
10 | enableMockJwt: false
11 |
12 | # JWT signature public certificates. kid and certificate path mappings.
13 | jwt:
14 | certificate:
15 | '100': primary.crt
16 | '101': secondary.crt
17 | clockSkewInSeconds: 60
18 |
19 | # Enable or disable JWT token logging
20 | logJwtToken: true
21 |
22 | # Enable or disable client_id, user_id and scope logging.
23 | logClientUserScope: false
24 |
25 | # If OAuth2 provider support http2 protocol. If using light-oauth2, set this to true.
26 | oauthHttp2Support: true
27 |
28 | # Enable JWT token cache to speed up verification. This will only verify expired time
29 | # and skip the signature verification as it takes more CPU power and long time.
30 | enableJwtCache: true
31 |
--------------------------------------------------------------------------------
/light-proxy/aws-lambda/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM azul/zulu-openjdk-alpine:11 as packager
2 |
3 | RUN { \
4 | java --version ; \
5 | echo "jlink version:" && \
6 | $JAVA_HOME/bin/jlink --version ; \
7 | }
8 |
9 | ENV JAVA_MINIMAL=/opt/jre
10 |
11 | # build modules distribution
12 | RUN $JAVA_HOME/bin/jlink \
13 | --verbose \
14 | --add-modules \
15 | java.base,java.sql,java.naming,java.desktop,java.xml,jdk.crypto.cryptoki,jdk.crypto.ec,jdk.unsupported,java.management,java.security.jgss,java.net.http \
16 | --compress 2 \
17 | --strip-debug \
18 | --no-header-files \
19 | --no-man-pages \
20 | --output "$JAVA_MINIMAL"
21 |
22 | # Second stage, add only our minimal "JRE" distr and our app
23 | FROM alpine
24 |
25 | ENV JAVA_MINIMAL=/opt/jre
26 | ENV PATH="$PATH:$JAVA_MINIMAL/bin"
27 |
28 | COPY --from=packager "$JAVA_MINIMAL" "$JAVA_MINIMAL"
29 | COPY /light-proxy.jar server.jar
30 | COPY /config /config
31 | CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -jar /server.jar"]
32 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-key/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:mariadb://mariadb:3306/oauth2?useSSL=false
16 | username: mysqluser
17 | password: mysqlpw
18 | maximumPoolSize: 2
19 | useServerPrepStmts: true
20 | cachePrepStmts: true
21 | cacheCallableStmts: true
22 | prepStmtCacheSize: 4096
23 | prepStmtCacheSqlLimit: 2048
24 |
--------------------------------------------------------------------------------
/light-oauth2/mariadb/config/oauth2-user/service.yml:
--------------------------------------------------------------------------------
1 | # Singleton service factory configuration/IoC injection
2 | singletons:
3 | # Default decryptor implementation
4 | - com.networknt.utility.Decryptor:
5 | - com.networknt.decrypt.AESDecryptor
6 | # StartupHookProvider implementations, there are one to many and they are called in the same sequence defined.
7 | - com.networknt.server.StartupHookProvider:
8 | - com.networknt.oauth.cache.CacheStartupHookProvider
9 | # ShutdownHookProvider implementations, there are one to many and they are called in the same sequence defined.
10 | - com.networknt.server.ShutdownHookProvider:
11 | - com.networknt.oauth.cache.CacheShutdownHookProvider
12 |
13 | - javax.sql.DataSource:
14 | - com.zaxxer.hikari.HikariDataSource:
15 | jdbcUrl: jdbc:mariadb://mariadb:3306/oauth2?useSSL=false
16 | username: mysqluser
17 | password: mysqlpw
18 | maximumPoolSize: 2
19 | useServerPrepStmts: true
20 | cachePrepStmts: true
21 | cacheCallableStmts: true
22 | prepStmtCacheSize: 4096
23 | prepStmtCacheSqlLimit: 2048
24 |
--------------------------------------------------------------------------------