put in fixed error in appsetting.cs does not have other key

This commit is contained in:
2026-05-13 18:22:17 +10:00
parent fb751ecbc3
commit c0bc89083d
5 changed files with 46 additions and 38 deletions
+30 -31
View File
@@ -1,35 +1,34 @@
server {
listen 80;
server_name://yourdomain.com # your actaul subdomain
#make sure in nginx.conf has include module.d/*.conf inside http block one.
server {
listen 80; #make nginx out side listen 82;
location / {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /familytreeui/ {
root /var/www/familytree; #path must exist like /var/www/familytree/familytreeui and /var/www/familytree/api folder.
index index.html
try_files $uri $uri/ /index.html;
}
# Optional: Cache static assets for better performance
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires 30d;
add_header Cache-Control "public";
}
#root /var/www/familytree/familytreeui; #path to your build files
#index index.html
location / {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /familytreeui/ {
root /var/www/familytree; #path must exist like /var/www/familytree/familytreeui and /var/www/familytree/api folder.
index index.html
try_files $uri $uri/ /index.html;
}
# Optional: Cache static assets for better performance
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires 30d;
add_header Cache-Control "public";
}
error_page 404 /index.html;
}
error_page 404 /index.html;
# put in /etc/nginx/sites-availalble/familytreeapp.conf
# link to enable
# $) sudo ln -s /etc/nginx/sites-availalble/familytreeapp.conf /etc/nginx/sites-enabled/
# $) sudo ln -s /etc/nginx/sites-availalble/familytreeapp.conf /etc/nginx/sites-enabled/
}