Skip to content

Commit

Permalink
feat: descope configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Oct 25, 2023
1 parent 3310f33 commit d459ee3
Show file tree
Hide file tree
Showing 11 changed files with 183 additions and 537 deletions.
7 changes: 5 additions & 2 deletions App/Config/settings.pichu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ Metrics:
Database:
MAIN:
AutoMigrate: false
Cache: {}
BlockStorage: {}
# external
HttpClient: {}
Auth:
Settings:
Issuer: P2XFqh86DbH8CpKe5yL8amliK1Es
Audience: P2XFqh86DbH8CpKe5yL8amliK1Es
Domain: api.descope.com/P2XFqh86DbH8CpKe5yL8amliK1Es
36 changes: 36 additions & 0 deletions App/Config/settings.pikachu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
$schema: ./schema.json
# Native
App:
Landscape: pikachu
EnableSwagger: true
GenerateConfig: false
Swagger:
Title: Pikachu Sulfone Zinc API
# OTEL
Logs:
Exporter:
Console:
Enabled: false
Otlp:
Enabled: true
Trace:
Exporter:
Otlp:
Enabled: true

Metrics:
Exporter:
Otlp:
Enabled: true

# Infra-based
Database:
MAIN:
AutoMigrate: false
# external
HttpClient: {}
Auth:
Settings:
Issuer: P2XFuosHI4qTl7bGbvZVCTBELFl9
Audience: P2XFuosHI4qTl7bGbvZVCTBELFl9
Domain: api.descope.com/P2XFuosHI4qTl7bGbvZVCTBELFl9
194 changes: 19 additions & 175 deletions App/Config/settings.raichu.yaml
Original file line number Diff line number Diff line change
@@ -1,192 +1,36 @@
$schema: ./schema.json
# Native
App:
Landscape: raichu
EnableSwagger: true
GenerateConfig: false
Kestrel:
Endpoints:
Http:
Url: http://+:9050
AllowedHosts: "*"
Logging:
LogLevel:
Default: None
Console:
LogLevel:
Default: Information
# FormatterName: json
# FormatterOptions:
# SingleLine: false
# IncludeScopes: true
# JsonWriterOptions:
# Indented: true
OpenTelemetry:
IncludeFormattedMessage: true
IncludeScopes: true
ParseStateValues: true
Swagger:
Title: Raichu Sulfone Zinc API
# OTEL
Logs:
Exporter:
Console:
Enabled: false
Otlp:
Enabled: false
Endpoint: ""
ProcessorType: Batch # or simple
Protocol: Grpc # or HttpProtobuf
Timeout: 30000
BatchSize: 512
QueueSize: 2048
Delay: 5000
Headers: ""
Trace:
Instrument:
EFCore:
Enabled: true
SetDbStatementForStoredProcedure: true
SetDbStatementForText: false
AspNetCore:
Enabled: true
GrpcSupport: true
RecordException: true
HttpClient:
Enabled: true
RecordException: true
SqlClient:
Enabled: false
RecordException: true
SetDbStatementForStoredProcedure: true
EnableConnectionLevelAttributes: true
SetDbStatementForText: true
GrpcClient:
Enabled: true
RecordException: true
Trace:
Exporter:
Console:
Enabled: false
Otlp:
Enabled: false
Endpoint: ""
Timeout: 30000
ProcessorType: Batch # or simple
Protocol: Grpc # or HttpProtobuf
BatchSize: 512
QueueSize: 2048
Delay: 5000
Headers: ""
Enabled: true

Metrics:
Instrument:
AspNetCore: true
HttpClient: true
Process: true
Runtime: true
Exporter:
Console:
Enabled: false
ExportInterval: 1000
Otlp:
Enabled: false
Endpoint: ""
ExportInterval: 1000
Timeout: 30000
ProcessorType: Batch # or simple
Protocol: Grpc # or HttpProtobuf
BatchSize: 512
QueueSize: 2048
Delay: 5000
Headers: ""
Swagger:
Title: Raichu CarboxylicAcid .NET API
Description: Raichu CarboxylicAcid .NET API
OpenApiContact:
Name: kirinnee
Email: kirinnee97@gmail.com
Url: https://kirinnee.dev
Cors:
- Name: AllowAll
SupportsCredentials: true
PreflightMaxAge: 600
- Name: OnlyLocalHost
SupportsCredentials: true
PreflightMaxAge: 300
Origins:
- http://localhost:4200
Headers:
- Content-Type
- X-Requested-With
- Authorization
Methods:
- GET
- POST
- PUT
ErrorPortal:
Enabled: true
Scheme: http
Host: localhost:3000
EnableExceptionResponse: false
Database: {}
BlockStorage: {}
Cache: {}
HttpClient:
Main:
BaseAddress: http://sulfone-analytics:9050
Timeout: 30
BearerAuth: supersecret
SearchEngine:
Main:
Host: sulfone-dotnet-search
Scheme: http
Port: 7700
MasterKey: supersecret
Create: true
PrimaryKey: id
Index: Main
MigrationTimeout: 60
Settings:
DisplayedAttributes:
- "*"
FilterAttributes: []
SearchableAttributes:
- "*"
SortableAttributes:
- "*"
RankingRules:
- words
- typo
- proximity
- attribute
- sort
- exactness
StopWords: []
Synonyms: {}
DistinctAttribute: null
TypoTolerance:
Enabled: true
MinWordSizeForTypos:
OneTypo: 4
TwoTypos: 8
DisableOnWords: []
DisableOnAttributes: []
Faceting:
MaxValuesPerFacet: 100
Pagination:
MaxTotalHits: 100000000
Enabled: true

# Infra-based
Database:
MAIN:
AutoMigrate: false
# external
HttpClient: {}
Auth:
Enabled: false
Settings:
Domain: sulfone
Audience: aud
TokenValidation:
ValidateIssuer: true
ValidateAudience: true
ValidateLifetime: true
ValidateIssuerSigningKey: true
ClockSkew: 0
Policies:
admin/internal:
Type: All
Scopes:
- internal
- admin
admin:
Type: Any
Scopes:
- admin
Issuer: P2XFv6QG93h3sj6EuphPCrJTXvVs
Audience: P2XFv6QG93h3sj6EuphPCrJTXvVs
Domain: api.descope.com/P2XFv6QG93h3sj6EuphPCrJTXvVs
7 changes: 5 additions & 2 deletions infra/api_chart/app/settings.pichu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ Metrics:
Database:
MAIN:
AutoMigrate: false
Cache: {}
BlockStorage: {}
# external
HttpClient: {}
Auth:
Settings:
Issuer: P2XFqh86DbH8CpKe5yL8amliK1Es
Audience: P2XFqh86DbH8CpKe5yL8amliK1Es
Domain: api.descope.com/P2XFqh86DbH8CpKe5yL8amliK1Es
36 changes: 36 additions & 0 deletions infra/api_chart/app/settings.pikachu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
$schema: ./schema.json
# Native
App:
Landscape: pikachu
EnableSwagger: true
GenerateConfig: false
Swagger:
Title: Pikachu Sulfone Zinc API
# OTEL
Logs:
Exporter:
Console:
Enabled: false
Otlp:
Enabled: true
Trace:
Exporter:
Otlp:
Enabled: true

Metrics:
Exporter:
Otlp:
Enabled: true

# Infra-based
Database:
MAIN:
AutoMigrate: false
# external
HttpClient: {}
Auth:
Settings:
Issuer: P2XFuosHI4qTl7bGbvZVCTBELFl9
Audience: P2XFuosHI4qTl7bGbvZVCTBELFl9
Domain: api.descope.com/P2XFuosHI4qTl7bGbvZVCTBELFl9
Loading

0 comments on commit d459ee3

Please sign in to comment.