tlalok Hi, I made my own nginx configuration, because nginx configuration flarum documentation doesn't work
server {
listen 80;
server_name _;
root /var/www/flarum;
The difference is what they posted is universal and the extra you posted is user-specific - so it should explain why it's being set as is. As for it not working, it doesn’t work if you simply copy and paste.
Now - I know flarum is designed to be as easy as possible to install so perhaps it should include the entire nginx config
With that in mind, I would suggest the following (or similar wording):
listen 80; # What port to listen on - commonly 80
server_name domain; # e.g. discuss.flarum.org
root /install/directory/; # Where the flarum extracted files are located