update config file and sample graphql
This commit is contained in:
@@ -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,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"
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user