Closed renoirb closed 9 years ago
Only that /app/embed.js
is now just /embed.js
.
Assets is the path to cache. With production.ini the cache headers should be far future expires. The server does that. So your cache can just honor the headers.
I know that /app/embed.js is now /embed.js. I had to create a 301 redirect for things I couldn’t change at the various dependencies. I should have removed that line from my example.
root doesn’t work, look at screenshot at #8
root should point to notes_server/static
But unless you're going to check these configurations into this repo, should we be tracking these in issues here or just talking on IRC/email?
Like, I have no idea when or how to close this.
Or rather, the alias
of the ^/assets
route should point to notes_server/static
Also you should set a server_name
directive on the server block or the application won't be able to trust the host header.
I’m going to check them in here.
Soon enough i’ll add the salt states to build a VM to run it that’ll be used in production. Without private data, of course.
I just updated the config block. It now shows a white page.
What's left to do here?
location ~ ^/assets/(.*)$ {}
block. If you don’t tell me, I’ll have to figure out how to address to them. Besides that, I’ll commit the nginx config soon.
You want to point it at /srv/webplatform/notes-server/notes_server/static
and use tryfiles and fall back to gunicorn on 404 so that it regenerates any assets that need building.
And you should key the cache on the query string.
Bump
This part is OK.
Things that has to be validated
^/assets
)root
to?Suggested configuration
Here is the previous NGINX server block setup, is there something that has to be changed?