aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorwinter2025-02-23 16:50:11 +0000
committerwinter2025-02-23 16:50:11 +0000
commit1ba56a5b687e6c906c2b24e5b37df119ef5752e3 (patch)
treeab2f143e87d66d93a0465cf38f9ce35d28864344
parent5f58635b73d78e4663921235ed850723378fd61d (diff)
add sample nginx config
-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;
+ }
+}
+```