Skip to content

Commit d24c47c

Browse files
committed
Move production config to appsettings.json / appsettings.Development.json
1 parent 99bccb1 commit d24c47c

4 files changed

Lines changed: 32 additions & 8 deletions

File tree

MyApp/appsettings.Development.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,21 @@
2121
"Microsoft": "Information"
2222
}
2323
}
24+
},
25+
"AppConfig": {
26+
"AppName": "ubixar",
27+
"AppIcon": "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M13.001 6a4 4 0 1 1 8 0a4 4 0 0 1-8 0M8.997 8.144l4.493 6.988l2.436-3.899L24.001 22H.18z'%3E%3C/path%3E%3C/svg%3E",
28+
"FeaturedTitle": "Featured Images",
29+
"FeaturedSubTitle": "Discover amazing AI-generated creations from our community.",
30+
"LocalBaseUrl": "https://localhost:5001",
31+
"PublicBaseUrl": "https://gateway.com",
32+
"AppDataPath": "../App_Data",
33+
"ArtifactsPath": "../App_Data/artifacts",
34+
"FilesPath": "../App_Data/files",
35+
"VisualLanguageModel": "qwen2.5vl:7b",
36+
"ChatLanguageModel": "mistral-small3.2:24b",
37+
"DefaultUserId": "5B3DF8CA-6AB3-4BEE-AAFC-8FB0C8DF349D",
38+
"DefaultUserName": "ubixar",
39+
"FeaturedUserIds": ["03ff2dd7-c3b9-4759-a855-7b9fb0ee4de7"]
2440
}
2541
}

MyApp/appsettings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"FeaturedSubTitle": "Discover amazing AI-generated creations from our community.",
2121
"LocalBaseUrl": "https://localhost:5001",
2222
"PublicBaseUrl": "https://gateway.com",
23-
"AppDataPath": "../App_Data",
24-
"ArtifactsPath": "../App_Data/artifacts",
25-
"FilesPath": "../App_Data/files",
23+
"AppDataPath": "/app/App_Data",
24+
"ArtifactsPath": "/app/App_Data/artifacts",
25+
"FilesPath": "/app/App_Data/files",
2626
"VisualLanguageModel": "qwen2.5vl:7b",
2727
"ChatLanguageModel": "mistral-small3.2:24b",
2828
"DefaultUserId": "5B3DF8CA-6AB3-4BEE-AAFC-8FB0C8DF349D",

compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ services:
99
environment:
1010
- ASPNETCORE_ENVIRONMENT=Development
1111
- ASPNETCORE_URLS=http://+:8080
12-
# Override the AppDataPath to point to the mounted directory
13-
- AppConfig__AppDataPath=/app/App_Data
14-
- AppConfig__ArtifactsPath=/app/App_Data/artifacts
15-
- AppConfig__FilesPath=/app/App_Data/files
1612
volumes:
1713
# Mount App_Data directory for persistent data
1814
- ./App_Data:/app/App_Data

config/deploy.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,23 @@ proxy:
2626
host: ubixar.com
2727
# kamal-proxy connects to your container over port 80, use `app_port` to specify a different port.
2828
app_port: 8080
29-
response_timeout: 300
29+
response_timeout: 30 # Reduce timeout to fail faster and help diagnose
3030
forward_headers: true
3131
buffering:
3232
requests: false
3333
responses: false
34+
# Add detailed logging to help diagnose the issue
35+
logging:
36+
request_headers:
37+
- User-Agent
38+
- Connection
39+
- Upgrade
40+
- Accept
41+
- Accept-Encoding
42+
response_headers:
43+
- Content-Type
44+
- Connection
45+
- Upgrade
3446

3547
# Credentials for your image host.
3648
registry:

0 commit comments

Comments
 (0)