aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9a8185f..01b0bf8 100644
--- a/README.md
+++ b/README.md
@@ -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;
+ }
+}
+```