diff options
| author | winter | 2025-02-23 16:50:11 +0000 |
|---|---|---|
| committer | winter | 2025-02-23 16:50:11 +0000 |
| commit | 1ba56a5b687e6c906c2b24e5b37df119ef5752e3 (patch) | |
| tree | ab2f143e87d66d93a0465cf38f9ce35d28864344 /README.md | |
| parent | 5f58635b73d78e4663921235ed850723378fd61d (diff) | |
add sample nginx config
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; + } +} +``` |
