Ghost CMS main root folder and Nginx configuration for HestiaCP problem

Issue Summary

root /var/www/ghost/system/nginx-root

there is no folder like this and I cant get assets etc.

my main folder at /home/user/web/domain/public_html/ not at the var folder.

I installed with ghost install local without using mysql

last logs:

188.XXX.XXX.XX - - [21/Oct/2022:13:44:18 +0300] "GET /members/api/member/ HTTP/2.0" 204 0 "https://domain.com/blog/ways-to-remember-something/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:44:18 +0300] "GET /ghost/api/content/settings/?key=ed0346a1851d34600f626b4cc5&limit=all HTTP/2.0" 304 0 "https://domain.com/blog/ways-to-remember-something/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:44:18 +0300] "GET /ghost/api/content/tiers/?key=ed0346a1851d34600f626b4cc5&limit=all&include=monthly_price,yearly_price,benefits HTTP/2.0" 304 0 "https://domain.com/blog/ways-to-remember-something/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX- - [21/Oct/2022:13:44:18 +0300] "GET /ghost/api/content/newsletters/?key=ed0346a1851d34600f626b4cc5&limit=all HTTP/2.0" 304 0 "https://domain.com/blog/ways-to-remember-something/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX- - [21/Oct/2022:13:48:05 +0300] "GET / HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:05 +0300] "GET /assets/built/screen.css?v=06e13de5c0 HTTP/2.0" 404 1422 "https://domain.com/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:05 +0300] "GET /public/cards.min.css?v=06e13de5c0 HTTP/2.0" 404 1422 "https://domain.com/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:06 +0300] "GET /assets/built/casper.js?v=06e13de5c0 HTTP/2.0" 404 1422 "https://domain.com/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:06 +0300] "GET /public/cards.min.js?v=06e13de5c0 HTTP/2.0" 404 1422 "https://domain.com/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:06 +0300] "GET /public/member-attribution.min.js?v=06e13de5c0 HTTP/2.0" 404 1422 "https://domain.com/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:06 +0300] "GET /members/api/member/ HTTP/2.0" 204 0 "https://domain.com/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:06 +0300] "GET /ghost/api/content/settings/?key=ed0346a1851d34600f626b4cc5&limit=all HTTP/2.0" 304 0 "https://domain.com/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:06 +0300] "GET /ghost/api/content/tiers/?key=ed0346a1851d34600f626b4cc5&limit=all&include=monthly_price,yearly_price,benefits HTTP/2.0" 304 0 "https://domain.com/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:06 +0300] "GET /ghost/api/content/newsletters/?key=ed0346a1851d34600f626b4cc5&limit=all HTTP/2.0" 304 0 "https://domain.com/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:06 +0300] "GET /assets/built/casper.js?v=06e13de5c0 HTTP/2.0" 404 1422 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
188.XXX.XXX.XX - - [21/Oct/2022:13:48:06 +0300] "GET /public/cards.min.js?v=06e13de5c0 HTTP/2.0" 404 1422 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"

Current Nginx config:

server {
    listen      XXX.XXX.XXX.XXX:443 ssl http2;
    server_name domain.com www.domain.com;
    root        /home/user/web/domain.com/public_html;
    index       index.php index.html index.htm;
    access_log  /var/log/nginx/domains/domain.com.log combined;
    access_log  /var/log/nginx/domains/domain.com.bytes bytes;
    error_log   /var/log/nginx/domains/domain.com.error.log error;

    ssl_certificate      /home/user/conf/web/domain.com/ssl/domain.com.pem;
    ssl_certificate_key  /home/user/conf/web/domain.com/ssl/domain.com.key;
    ssl_stapling on;
    ssl_stapling_verify on;

    include /home/user/conf/web/domain.com/nginx.hsts.conf*;


    location / {

        root        /home/user/web/domain.com/public_html/system/nginx-root;

        proxy_ignore_headers Cache-Control;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;
        proxy_pass http://127.0.0.1:2368;
        proxy_redirect off;


        location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
            expires     max;
            fastcgi_hide_header "Set-Cookie";
        }
    }

    client_max_body_size 50m;

config.development.json

{
  "url": "https://domain.com/",
  "server": {
    "port": 2368,
    "host": "127.0.0.1"
  },
  "database": {
    "client": "sqlite3",
    "connection": {
      "filename": "/home/user/web/domain.com/public_html/content/data/ghost-local.db"
    }
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "local",
  "paths": {
    "contentPath": "/home/user/web/domain.com/public_html/content"
  }
}

Appearence of website and errors:

Steps to Reproduce

  1. İnstall HestiaCP to server that is Ubuntu 22.04
  2. install ghost to web folder at home folder with “ghost install local” command
  3. Configure nginx like formal documentation at ghost website.
  4. ghost cms homepage appears but assets etc. are not gotten with web server. I get 404 error. I have tried many things but does not work.

Ghost Version

v5.19.13

Node.js Version

v16.17.1

How did you install Ghost?

Ubuntu 22.04 with Ghost CLI 1.23.1

Database type

SQLite3

Browser & OS version

Ubuntu 22.04

Relevant log / error output

No response

Is there anyone who use HestiaCP and installed Ghost CMS to the Ubuntu?