Skip to content

Commit

Permalink
Introduce end-of-line normalization (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
runejo authored Dec 12, 2024
1 parent dfa5d88 commit a6f8315
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 207 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto
*.cs text eol=lf
212 changes: 106 additions & 106 deletions PxWeb/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,106 +1,106 @@
{
"DataSource": {
"DataSourceType": "PX",
"PX": {
"StrictAggregations": "true"
},
"CNMM": {
"DatabaseID": "ssd"
}
},
"PxApiConfiguration": {
"Languages": [
{
"Id": "en",
"Label": "English"
},
{
"Id": "sv",
"Label": "Svenska"
}
],
"DefaultLanguage": "en",
"MaxDataCells": 10000,
"License": "https://creativecommons.org/share-your-work/public-domain/cc0/",
"SourceReferences": [
{
"Language": "en",
"Text": "Source: Statistics Sweden"
},
{
"Language": "sv",
"Text": "Källa: SCB"
}
],
"Cors": {
"Enabled": true,
"Origins": "*"
},
"CacheTime": 86400,
"SearchEngine": "Lucene",
"PageSize": 20,
"BaseURL": "https://www.pxapi.com",
"RoutePrefix": "/api/v2",
"OutputFormats": [
"xlsx",
"xlsx_doublecolumn",
"csv",
"csv_tab",
"csv_tabhead",
"csv_comma",
"csv_commahead",
"csv_space",
"csv_spacehead",
"csv_semicolon",
"csv_semicolonhead",
"csv2",
"csv3",
"json",
"json-stat",
"json-stat2",
"parquet",
"html5_table",
"relational_table",
"px"
],
"DefaultOutputFormat": "px",
"EnableAllEndpointsSwaggerUI": false
},
"LuceneConfiguration": {
"IndexDirectory": "Database"
},
"AdminProtection": {
"IpWhitelist": ["127.0.0.1", "::1"],
"AdminKey": "test"
},
"CacheMiddleware": {
"CacheTime": 300,
"BufferThreshold": 40960
},
"IpRateLimiting": {
"EnableEndpointRateLimiting": false,
"StackBlockedRequests": false,
"RealIpHeader": "X-Forwarded-For",
"ClientIdHeader": "",
"HttpStatusCode": 429,
"IpWhitelist": ["::1/10", "127.0.0.1"],
"EndpointWhitelist": ["get:/v2/config"],
"ClientWhitelist": [],
"GeneralRules": [
{
"Endpoint": "*",
"Period": "10s",
"Limit": 30
}
]
},

"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"config1": ""
}
{
"DataSource": {
"DataSourceType": "PX",
"PX": {
"StrictAggregations": "true"
},
"CNMM": {
"DatabaseID": "ssd"
}
},
"PxApiConfiguration": {
"Languages": [
{
"Id": "en",
"Label": "English"
},
{
"Id": "sv",
"Label": "Svenska"
}
],
"DefaultLanguage": "en",
"MaxDataCells": 10000,
"License": "https://creativecommons.org/share-your-work/public-domain/cc0/",
"SourceReferences": [
{
"Language": "en",
"Text": "Source: Statistics Sweden"
},
{
"Language": "sv",
"Text": "Källa: SCB"
}
],
"Cors": {
"Enabled": true,
"Origins": "*"
},
"CacheTime": 86400,
"SearchEngine": "Lucene",
"PageSize": 20,
"BaseURL": "https://www.pxapi.com",
"RoutePrefix": "/api/v2",
"OutputFormats": [
"xlsx",
"xlsx_doublecolumn",
"csv",
"csv_tab",
"csv_tabhead",
"csv_comma",
"csv_commahead",
"csv_space",
"csv_spacehead",
"csv_semicolon",
"csv_semicolonhead",
"csv2",
"csv3",
"json",
"json-stat",
"json-stat2",
"parquet",
"html5_table",
"relational_table",
"px"
],
"DefaultOutputFormat": "px",
"EnableAllEndpointsSwaggerUI": false
},
"LuceneConfiguration": {
"IndexDirectory": "Database"
},
"AdminProtection": {
"IpWhitelist": ["127.0.0.1", "::1"],
"AdminKey": "test"
},
"CacheMiddleware": {
"CacheTime": 300,
"BufferThreshold": 40960
},
"IpRateLimiting": {
"EnableEndpointRateLimiting": false,
"StackBlockedRequests": false,
"RealIpHeader": "X-Forwarded-For",
"ClientIdHeader": "",
"HttpStatusCode": 429,
"IpWhitelist": ["::1/10", "127.0.0.1"],
"EndpointWhitelist": ["get:/v2/config"],
"ClientWhitelist": [],
"GeneralRules": [
{
"Endpoint": "*",
"Period": "10s",
"Limit": 30
}
]
},

"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"config1": ""
}
Loading

0 comments on commit a6f8315

Please sign in to comment.