Serving .json and .js on my Domain for Pushnami

Hello, I installed Ghost Blog and have it working perfectly on my Ubuntu server.

What I’m trying to do is install “Pushnami” into my blog. They say to add 2 lines of code into the “head” which I did with code injections. But I need to serve 2 files they provided @ (mydomain(.)com/manifest.json) (mydomain(.)com/service-worker.js) - I’m not sure how to do about this and in what directory to upload the 2 files.

My blog is located @ : /var/www/ghost/mydomain(.)com

My NGINX Config

server {
listen 80;
listen [::]:80;

server_name mydomain.com;
root /var/www/ghost/mydomain.com/system/nginx-root; # Used for acme.sh SSL verification (https://acme.sh)

location / {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Host $http_host;
    proxy_pass http://127.0.0.1:2368;
}

location ~ /.well-known {
    allow all;
}

client_max_body_size 50m;
}

I know I need to edit this config file, just not sure how. It’s important that the .js and .json are served from mydomain.com/ and not mydomain.com/sub/file.json

Thank you in advance.

There’s no need to modify your site configuration to serve static JavaScript files. You can add them to the root of your theme that you’re using and then reference them in your template files. Downloading, and uploading, your theme can be done via the Design view within your Ghost admin :paintbrush: