From 710a15e306d958fc25855d61e7862e0319a45358 Mon Sep 17 00:00:00 2001 From: Oda <102867384+CryptoOda@users.noreply.github.com> Date: Wed, 30 Apr 2025 20:44:18 +0200 Subject: [PATCH] Production (#21) * Add Production env * Update mongo url * Update config --- .DS_Store | Bin 10244 -> 10244 bytes .gitignore | 3 + src/.DS_Store | Bin 12292 -> 14340 bytes .../Managing.Api.Workers.csproj | 99 +++++++++--------- .../appsettings.Production.json | 19 ++-- ...ngs.Prod.json => appsettings.Sandbox.json} | 0 src/Managing.Api/Managing.Api.csproj | 98 ++++++++--------- src/Managing.Api/appsettings.Production.json | 15 +-- ...ngs.Prod.json => appsettings.Sandbox.json} | 0 ...cal.json => appsettings.SandboxLocal.json} | 0 src/Managing.Nswag/.DS_Store | Bin 0 -> 6148 bytes src/Managing.Web3Proxy/.env | 33 ------ 12 files changed, 123 insertions(+), 144 deletions(-) rename src/Managing.Api.Workers/{appsettings.Prod.json => appsettings.Sandbox.json} (100%) rename src/Managing.Api/{appsettings.Prod.json => appsettings.Sandbox.json} (100%) rename src/Managing.Api/{appsettings.ProdLocal.json => appsettings.SandboxLocal.json} (100%) create mode 100644 src/Managing.Nswag/.DS_Store delete mode 100644 src/Managing.Web3Proxy/.env diff --git a/.DS_Store b/.DS_Store index 0f5830ba98971042c96f039cbf39c6bd304522ec..2a2cb614b57cca6c471e373b338d483296b14bff 100644 GIT binary patch delta 158 zcmZn(XbITBDZ(TrGnrfDj&!^Le{n{Bxo2{IUO-W5S!QZ^L?)0OoLQARnMqWGsj*?Q zj;Jgbr?Nu;0~kyW7FCp#WK?3*W;9{6WwdAXU<_moVoYYtV9aF9+T1Hz!p}&q)^a8Q DYL+8` delta 134 zcmZn(XbITBDZ(TzHJMxF&g46y(vz7)HJEA`ChLgGaw$6mFn|H)g{6 diff --git a/.gitignore b/.gitignore index 66bdc23..c8af6fe 100644 --- a/.gitignore +++ b/.gitignore @@ -379,3 +379,6 @@ src/Managing.Infrastructure.Tests/PrivateKeys.cs # Node.js Tools for Visual Studio node_modules/ + + + diff --git a/src/.DS_Store b/src/.DS_Store index 7671fdcb5b89580a070018a19097c4f909319e57..96f9a5f8f44d0646781109a5804f8bfeaf375c61 100644 GIT binary patch delta 1098 zcmbW1e`r%z6vxl^Cb94JR(jheHchR05NVlBw{)?^D%R3gu=aKJS->=)bHWNZ`cV1sSUp_H+e3BwKll1T*%!~MF+t7WkLF+6bZ zx#zt5?t9U$Ut3s8lnKsid zO3{8gMK92K`hY&93-mc%rtj!SxZV=MFTaqGmFxqN)D| z=-)tW{{{G)H?F`9mDLFD7cRv_oAH+U$}6k5e6?&vh6{&cspoQaK|dE*2pZOM zE}V+0eXVhW3aJPK3vo-U-!C*Vt!Y}oetV+(pqKeKzAx!2eNR8pO@;4IIG~{v1}YI$ zuo}^X7PMlc;`b}!}Foy8lN!kc&t zZ{q?!3gKgXf=_V~U*KEJ;F_&v5mDzoZMMg+@^Fb^<&`^KmVpxvR9OYaXL-_FRXQ=b zN>*38t$-MH=!@+tXG@M~;kt&P5q>xvIQXVa@zzU7dG!5UZg eBe^8k2mJ-i{yVJ6-Xr$}C#*kKUSakl{eJ_CFz6}( delta 1212 zcmb`HTWm~09LE3OY_~nf4n0=s+P2wks?j zlZY^5tuK!#L;foA?Ng1*&vqiGCF~rJN#TkTAzU``#x+(fbb7k)v$#l{5~G-t<+MbR zY8w$r%V;%;I!%paYgx!IYG?`gLv3#N6EIVZIW|sFhgkSf`;zLKrF?mvW^MQD>lU=M z`J02GC3YHgx9g?eHa%41U)3C39vHr)plMDkK*$#j5D|Yu6 z6iT59R7&%xo?2-G?WRN2MQ7+XKSu4(^F`G}tTDVdv5&Rr zO0eWd{*2l&YxbPEeEwfi=lm0D5g6&0NFR;NS;ifjS<+G-*hbrv#=4}9m81-tmF;k7 zOzTk$>&|m<%_Q-w(a96DrA5D)JcV;DMmB;mRy2)sv0{|%Khb?mFX=UXpzo6IFpPi= zF1S&Esgh+mDzFGuSS)$gqXDbnlSrE-&{l*Ru@Rdj)h&|iF6_o0>_r%daRf)BY)?kn zp2j(x#|2!(CEUPG+`?_#!CgGU3%tfV^!`S${1<|Rul)cc9f>h!Bt^LMT3qEI`+>-8 tte#pRRxr42e*i|O@X-JO diff --git a/src/Managing.Api.Workers/Managing.Api.Workers.csproj b/src/Managing.Api.Workers/Managing.Api.Workers.csproj index b0ad5c3..fe039e5 100644 --- a/src/Managing.Api.Workers/Managing.Api.Workers.csproj +++ b/src/Managing.Api.Workers/Managing.Api.Workers.csproj @@ -1,54 +1,57 @@ - - net8.0 - enable - AnyCPU;x64 - 3900ce93-de15-49e5-9a61-7dc2209939ca - Linux - ..\.. - ..\..\docker-compose.dcproj - + + net8.0 + enable + AnyCPU;x64 + 3900ce93-de15-49e5-9a61-7dc2209939ca + Linux + ..\.. + ..\..\docker-compose.dcproj + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - Always - - - Always - - - Always - - - Always - - + + + Always + + + Always + + + Always + + + Always + + + Always + + diff --git a/src/Managing.Api.Workers/appsettings.Production.json b/src/Managing.Api.Workers/appsettings.Production.json index 31b8273..7d24004 100644 --- a/src/Managing.Api.Workers/appsettings.Production.json +++ b/src/Managing.Api.Workers/appsettings.Production.json @@ -1,16 +1,19 @@ { "ManagingDatabase": { - "ConnectionString": "mongodb://admin:r8oJiDIKbsEi@srv-captain--mongo-db:27017/?authMechanism=SCRAM-SHA-256", + "ConnectionString": "mongodb://root:gRerdhtg546FgrW@srv-captain--mongo:27017/?authMechanism=SCRAM-SHA-256", "DatabaseName": "ManagingDb" }, "InfluxDb": { - "Url": "http://srv-captain--influx-db:8086/", + "Url": "https://influx-db.apps.managing.live", "Organization": "managing-org", - "Token": "eOuXcXhH7CS13Iw4CTiDDpRjIjQtEVPOloD82pLPOejI4n0BsEj1YzUw0g3Cs1mdDG5m-RaxCavCMsVTtS5wIQ==" + "Token": "_BtklT_aQ7GRqWG-HGILYEd8MJzxdbxxckPadzUsRofnwJBKQuXYLbCrVcLD7TrD4BlXgGAsyuqQItsOtanfBw==" }, "Privy": { - "AppId": "cm6f47n1l003jx7mjwaembhup", - "AppSecret": "63Chz2z5M8TgR5qc8dznSLRAGTHTyPU4cjdQobrBF1Cx5tszZpTuFgyrRd7hZ2k6HpwDz3GEwQZzsCqHb8Z311bF" + "AppId": "cm6kkz5ke00n5ffmpwdbr05mp", + "AppSecret": "3STq1UyPJ5WHixArBcVBKecWtyR4QpgZ1uju4HHvvJH2RwtacJnvoyzuaiNC8Xibi4rQb3eeH2YtncKrMxCYiV3a" + }, + "Web3Proxy": { + "BaseUrl": "http://srv-captain--managing-web3:4111" }, "Serilog": { "MinimumLevel": { @@ -21,11 +24,11 @@ } } }, - "Web3Proxy": { - "BaseUrl": "http://srv-captain--web3-proxy:4111" - }, "ElasticConfiguration": { "Uri": "http://elasticsearch:9200" }, + "Sentry": { + "Dsn": "https://698e00d7cb404b049aff3881e5a47f6b@bugcenter.apps.managing.live/1" + }, "AllowedHosts": "*" } \ No newline at end of file diff --git a/src/Managing.Api.Workers/appsettings.Prod.json b/src/Managing.Api.Workers/appsettings.Sandbox.json similarity index 100% rename from src/Managing.Api.Workers/appsettings.Prod.json rename to src/Managing.Api.Workers/appsettings.Sandbox.json diff --git a/src/Managing.Api/Managing.Api.csproj b/src/Managing.Api/Managing.Api.csproj index 5ba484f..6583589 100644 --- a/src/Managing.Api/Managing.Api.csproj +++ b/src/Managing.Api/Managing.Api.csproj @@ -1,55 +1,55 @@ - - net8.0 - enable - AnyCPU;x64 - ..\..\docker-compose.dcproj - 7476db9f-ade4-414a-a420-e3ab55cb5f8d - Linux - ..\.. - + + net8.0 + enable + AnyCPU;x64 + ..\..\docker-compose.dcproj + 7476db9f-ade4-414a-a420-e3ab55cb5f8d + Linux + ..\.. + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - Always - - - Always - - - Always - - - Always - - + + + Always + + + Always + + + Always + + + Always + + diff --git a/src/Managing.Api/appsettings.Production.json b/src/Managing.Api/appsettings.Production.json index ab0e66a..935bb2a 100644 --- a/src/Managing.Api/appsettings.Production.json +++ b/src/Managing.Api/appsettings.Production.json @@ -1,19 +1,19 @@ { "ManagingDatabase": { - "ConnectionString": "mongodb://admin:r8oJiDIKbsEi@srv-captain--mongo-db:27017/?authMechanism=SCRAM-SHA-256", + "ConnectionString": "mongodb://admin:vgRehYTdhghDR@srv-captain--mongo:27017/?authMechanism=SCRAM-SHA-256", "DatabaseName": "ManagingDb" }, "InfluxDb": { - "Url": "http://srv-captain--influx-db:8086/", + "Url": "https://influx-db.apps.managing.live", "Organization": "managing-org", - "Token": "eOuXcXhH7CS13Iw4CTiDDpRjIjQtEVPOloD82pLPOejI4n0BsEj1YzUw0g3Cs1mdDG5m-RaxCavCMsVTtS5wIQ==" + "Token": "_BtklT_aQ7GRqWG-HGILYEd8MJzxdbxxckPadzUsRofnwJBKQuXYLbCrVcLD7TrD4BlXgGAsyuqQItsOtanfBw==" }, "Privy": { - "AppId": "cm6f47n1l003jx7mjwaembhup", - "AppSecret": "63Chz2z5M8TgR5qc8dznSLRAGTHTyPU4cjdQobrBF1Cx5tszZpTuFgyrRd7hZ2k6HpwDz3GEwQZzsCqHb8Z311bF" + "AppId": "cm6kkz5ke00n5ffmpwdbr05mp", + "AppSecret": "3STq1UyPJ5WHixArBcVBKecWtyR4QpgZ1uju4HHvvJH2RwtacJnvoyzuaiNC8Xibi4rQb3eeH2YtncKrMxCYiV3a" }, "Web3Proxy": { - "BaseUrl": "http://srv-captain--web3-proxy:4111" + "BaseUrl": "http://srv-captain--managing-web3:4111" }, "Serilog": { "MinimumLevel": { @@ -27,5 +27,8 @@ "ElasticConfiguration": { "Uri": "http://elasticsearch:9200" }, + "Sentry": { + "Dsn": "https://698e00d7cb404b049aff3881e5a47f6b@bugcenter.apps.managing.live/1" + }, "AllowedHosts": "*" } \ No newline at end of file diff --git a/src/Managing.Api/appsettings.Prod.json b/src/Managing.Api/appsettings.Sandbox.json similarity index 100% rename from src/Managing.Api/appsettings.Prod.json rename to src/Managing.Api/appsettings.Sandbox.json diff --git a/src/Managing.Api/appsettings.ProdLocal.json b/src/Managing.Api/appsettings.SandboxLocal.json similarity index 100% rename from src/Managing.Api/appsettings.ProdLocal.json rename to src/Managing.Api/appsettings.SandboxLocal.json diff --git a/src/Managing.Nswag/.DS_Store b/src/Managing.Nswag/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..21260084edbce376256620a6875612b96c6555db GIT binary patch literal 6148 zcmeHK!HN?>5Uoz)I^!bb;KE*n0k0v(jS9E9hwf=2Qlr)64pEng0w`lEMDqvXan^Iv@}3=_ z;u_{8D@=wSmlOFP7~s8YQ${)I$3Ebo_UKmqkXLg#s%%|13d*h+e%QV;1g-ysOQ-r*EmFtPA zMrNfarOi#;KoExExVyhz5APlJqT#`C(~H)J2ZLU8cX)rZ34^^`w~wBWKNhFje0Ibu z{3oqk_jm?hVEEO1N*1~>dIk?i@6i)VNkeDM2--e9rIIS^>C*}9IW5T0hb^|gBD=|! z0jpb4>gHC|HF{>N&CsTFirFwjv$En}`+H?{MT7xiKp40n1O9vrb}v{*(uDzG;PNrR z=R*W#j6K#4?a_h8J^_FoxUImpAOFCJ9l+RQ?GPS_a;ZR