diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -36,3 +36,29 @@ whenever you want to update to the latest version (from git) you should: if it looks messed up in your web browser after updating, you should be able to fix it by force reloading the page once + +## sample nginx configuration + +```nginx +server { + listen [::]:443 ssl; + listen 443 ssl; + server_name social.example; + charset utf-8; + root /path/to/wherever/you/cloned/this/repo; + access_log off; + error_log off; + client_max_body_size 20971520; # or however much you feel like + + location / { + index index.php; + rewrite ^(.*)$ /index.php?requestPath=$1 last; + } + + location ~ \.php$ { + fastcgi_index index.php; + fastcgi_pass 127.0.0.1:9000; # or wherever your php-fpm is listening + include fastcgi.conf; + } +} +``` |
