Skip to content

Commit 1927924

Browse files
committed
move production appsettings
1 parent d24c47c commit 1927924

4 files changed

Lines changed: 7 additions & 12 deletions

File tree

MyApp.ServiceModel/Hello.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace MyApp.ServiceModel;
44

5+
[Tag(Tags.Agent)]
56
[Route("/hello/{Name}")]
67
public class Hello : IGet, IReturn<HelloResponse>
78
{

MyApp/Configure.Db.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public void Configure(IWebHostBuilder builder) => builder
2121
.ConfigureServices((context, services) => {
2222

2323
var connectionString = AppConfig.Instance.DefaultConnection
24+
?? Environment.GetEnvironmentVariable("COMFY_DB_CONNECTION")
2425
?? context.Configuration.GetConnectionString("DefaultConnection")
2526
?? throw new Exception("DefaultConnection does not exist");
2627

MyApp/appsettings.Development.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,9 @@
2323
}
2424
},
2525
"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",
3126
"PublicBaseUrl": "https://gateway.com",
3227
"AppDataPath": "../App_Data",
3328
"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"]
29+
"FilesPath": "../App_Data/files"
4030
}
4131
}

MyApp/appsettings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"ConnectionStrings": {
3+
"TaskConnection": "DataSource=/app/App_Data/tasks/{db};Cache=Shared"
4+
},
25
"Logging": {
36
"IncludeScopes": false,
47
"Debug": {
@@ -19,7 +22,7 @@
1922
"FeaturedTitle": "Featured Images",
2023
"FeaturedSubTitle": "Discover amazing AI-generated creations from our community.",
2124
"LocalBaseUrl": "https://localhost:5001",
22-
"PublicBaseUrl": "https://gateway.com",
25+
"PublicBaseUrl": "https://ubixar.com",
2326
"AppDataPath": "/app/App_Data",
2427
"ArtifactsPath": "/app/App_Data/artifacts",
2528
"FilesPath": "/app/App_Data/files",

0 commit comments

Comments
 (0)