update config file and sample graphql
This commit is contained in:
@@ -14,13 +14,19 @@
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 /familytreeui/; #if same one redirect to /familytreeui/
|
||||
}
|
||||
|
||||
location /familytreeui {
|
||||
return 301 /familytreeui/; #if same one redirect to /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;
|
||||
try_files $uri $uri/ /index.html;
|
||||
try_files $uri $uri/ /familytreeui/index.html /index.html;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user