Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mixa3607/sdhub
Stable diffusion generations hosting
https://github.com/mixa3607/sdhub
Last synced: 2 days ago
JSON representation
Stable diffusion generations hosting
- Host: GitHub
- URL: https://github.com/mixa3607/sdhub
- Owner: mixa3607
- Created: 2022-11-18T23:16:59.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-12T03:20:30.000Z (about 1 year ago)
- Last Synced: 2023-11-12T04:22:10.490Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 2.55 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SdHub
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/mixa3607/SdHub/push.yml?branch=master&style=flat-square)
![GitHub](https://img.shields.io/github/license/mixa3607/SdHub?style=flat-square)## Как поднять dev среду
Требования:
- postgresql
- .net 6
- nodejsНастройка:
- В `SdHub/appsettings.Development.json` подредактировать connection string'и для `Database` и `Hangfire`
- БД для `Hangfire` нужно создать руками, основная БД создасться и засидиться сама если есть права
- Серты для подписи жвт для dev окружения есть в репо, если нужно то новые можно сгенерировать скриптом в `/scripts`Запуск:
- Экспортировать `ASPNETCORE_ENVIRONMENT` с значением `Development` или указать в профиле для студии
- Запустить `SdHub` из солюшена в `/Server`
- Запустить `npm run start` из `/Client`
- Открыть http://localhost:5790 и войти с кредсами `Admin:strong_passwd`## Настройки дсотупные в appsettings
|name|default|summary|
|-|-|-|
|**AppInfo**||Application info|
BaseUrl*||Base url
GitRefName*|"not_set"|Git ref. Fill from env if docker container
GitCommitSha*|"deadbeef"|Git sha. Fill from env if docker container
FrontDevServer||Use angular dev server instead compiled blobs. For development
DisableUsersRegistration|true|Disable user registration
|**Database**||Main db options|
ConnectionString*|""|Connection string
|**FileProcessor**||Files processings options|
CacheDir*|"./cache/upload"|Directory for temp files
PreserveCache|false|Don't delete cache
|**Hangfire**||Hangfire scheduler options. GUI on /hgf|
DatabaseConnectionString*||Database connection string
DatabaseSchema*|"public"|Database schema
RunServer|true|Run hangfire worker on backend
ServerName*|"bakend"|Worker name
|**Mailing**||Mailing options|
From*||Sender email
Host*||Mail server host
Port|587|Mail server port
Username*||Login
Password*||Password
EnableSsl|true|Enable ssl
UseMaildir|true|Использовать Maildir вместо отправки сообщений по сети
PathToMaildir*|"./maildir/"|Путь до корневой папки Maildir
MailTrustLevel|"Allow"|Есть установить то email'ы не будут проверяться на однодневки/подозрительные
TemplatesDir*|"./files/mailing/templates"|Templates directory
|**Recaptcha**||Google recaptcha options|
Bypass|true|Disable captcha
SecretKey*||Secret key
SiteKey*||Public site key
|**SdHubSeeder**||Database seeder options|
AdminPassword*||Password for Admin account
|**Swagger**||Swagger options|
Enable|false|Enable /swagger endpoint
|**WebSecurity**||Web security options|
EnableHttpsRedirections|true|Enable https redirection
EnableForwardedHeaders|true|Enable forwarded headers like X-Forwarded-For
Jwt|{}|Jwt auth options
Issuers*|["SdHub"]|Issuers
Issuer*|"SdHub"|Issuer
Audiences*|["SdHub"]|Audiences
ValidateLifetime|true|Validate lifetime
JwtLifetime|"00:05:00"|Lifetime
RefreshTokenLifetime|"5.00:00:00"|Refresh token lifetime
PfxPassword||Password for pfx cert. Can be null if not required
PfxFile*||Path to pfx cert file
LogPii|false|Log more info about authorization
Cors|{}|CORS options
AllowedHosts*|[]|Allowed hosts
|**Serilog**||Options for logging to ES. Used serilogs-sink-{assemblyName}-{0:yyyy.MM.dd} index|
DisableElastic|true|Disable logging to elastic search
ElasticUris*|[]|Urls to ES cluster
ElasticIndexPrefix||Append {prefix}- to index
LevelPreset|"Prod"|Predefined levels for logging AddCustomSerilog
EnableRequestLogging|true|Enable request logging
RequestLogMessageLevel|"Information"|Request message log level