update config file and sample graphql

This commit is contained in:
2026-05-15 21:34:45 +10:00
parent 09ac6c6bb1
commit fa3b289a77
3 changed files with 13 additions and 7 deletions
+3 -3
View File
@@ -180,11 +180,11 @@ PM> Scaffold-DbContext "Host=postgresdb;Port=5432;database=FamilyTreeDB;user id=
https://www.youtube.com/watch?v=HnXA8RI7Tvc https://www.youtube.com/watch?v=HnXA8RI7Tvc
query { query {
family { persons {
nodes{ nodes{
id id
firstname firstName
lastname sex
email email
} }
+2 -2
View File
@@ -2,8 +2,8 @@
"AppSettings": { "AppSettings": {
"Secret": "Super Secret SIGN AND VERIFY JWT TOKENS, BEARER TOKEN USE WHEN CALLING THIS API.", "Secret": "Super Secret SIGN AND VERIFY JWT TOKENS, BEARER TOKEN USE WHEN CALLING THIS API.",
"SQLConnectionString": "host=localhost;port=5432;database=FamilyTreeDB;username=postgres;password=Positive~1;", "SQLConnectionString_i": "host=localhost;port=5432;database=FamilyTreeDB;username=postgres;password=Positive~1;",
"SQLConnectionString_vm": "host=192.168.1.240;port=5432;database=FamilyTreeDB;username=postgres;password=Positive~1;", "SQLConnectionString": "host=192.168.1.240;port=5432;database=FamilyTreeDB;username=postgres;password=Positive~1;",
"ImageFolder": "c:\\temp\\Family", "ImageFolder": "c:\\temp\\Family",
"ImportFolder": "c:\\temp" "ImportFolder": "c:\\temp"
+8 -2
View File
@@ -14,13 +14,19 @@
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location / {
return 301 /familytreeui/; #if same one redirect to /familytreeui/
}
location /familytreeui { location /familytreeui {
return 301 /familytreeui/; #if same one redirect to /familytreeui/ return 301 /familytreeui/; #if same one redirect to /familytreeui/
} }
location /familytreeui/ { location /familytreeui/ {
root /var/www/familytree/; #path must exist like /var/www/familytree/familytreeui and /var/www/familytree/api folder. #root /var/www/familytree/; #path is real must exist like /var/www/familytree/familytreeui and /var/www/familytree/api folder.
alias /var/www/familytree/ui/; #location does not to match. but angular index baseurl must same as location.
#index index.html; #index index.html;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /familytreeui/index.html /index.html;
} }