View more context

 

wmk

then it's a "date", not a "dateTime". "date" is without time

Patrick Nelson

Anyone here using NGINX + PHP-FPM w/ SilverStripe in production? If so, what version of SS and what does your site config look like?

Patrick Nelson

I ask because I found NGINX config documentation here: https://docs.silverstripe.org/en/5/getting_started/installation/how_to/configure_nginx/

However, it's probably outdated and there's some sparse, inconsistent or blank documentation surrounding NGINX + SS.

nightjarnz

I remember years ago when nginx was new on the scene that the docs within were bascially a straight list of everything not to do in the nginx "common pitfalls" docs.

nightjarnz

This was years ago, and I'd hope the docs would be better now knowledge is much greater around this server. But I'd still cross reference what's therein with your own knowledge, and the nginx docs :>

fred.condo

@Patrick Nelson I wrote much of the ngnix docs. What specific improvements would you like to see?

Patrick Nelson

For it to be updated 🙂 Modernized for v4+, e.g. public directory, various security based exclusions, etc. Makes me wonder if it should (instead) be committed as some kind of boilerplate conf code and then LINKED TO in the docs, because the docs are outdated, inaccurate or missing.

Patrick Nelson

I originally wrote up a MUCH LARGER description of the problems but deleted it since I didn't want to weigh down chat with all these problems

Patrick Nelson

but e.g. when you google silverstripe nginx, one of the first results is I think a blank page

fred.condo

Looks like Ingo moved that doco to the forum. https://forum.silverstripe.org/t/nginx-webserver-configuration/2246

Show 1 attachment(s)
Silverstripe Forum  
Nginx webserver configuration

Moving this from http://docs.silverstripe.org|docs.silverstripe.org to a more community maintained location Nginx The prerequisite is that you have already installed Nginx and you are able to run PHP files via the FastCGI-wrapper from Nginx. Now you need to set up a virtual host in Nginx with configuration settings that are similar to those shown below. If you don't fully understand the configuration presented here, consult the nginx documentation. Especially be aware of accidental php-exe...

Hide attachment content
Patrick Nelson

Should probably 301 those doc pages, or better, LINK in those doc pages, to the appropriate URL.

fred.condo

The forum does have the public directory changes that I contributed.

👍 (1)
Patrick Nelson

So this is something someone at SS needs to clean up, I think.

nightjarnz

oh, yeah I think that's derived from the one I warned about that came into being when nginx was new, and ran into every "newbie pitfall" listed on the "newbie pitfalls; do do these" nginx wiki page they used to have.

nightjarnz

if memory serves, sorry don't have the time to look now, scrambling to get a dead device working for a video call meeting.


Show less replies
cwc

color me mad but, I definitely remember seeing a section under Server Requirements for csprng random number generators; it's no longer there, or has it been a really long dream?

Scopey

The docs have recently been updated. Yeah decent csprng is still a requirement.

Scopey

Although I think it's only used for user management... So if you're using the framework for something that doesn't involve anyone logging in you might be able to get rid of it! You should get exceptions thrown if there's no csprng though

taoceanz

If after going to log in you got a white page with This form requires a POST submission, what would you think the issue is?