From c633e79d59ec974c4673daad40d32d6f529850e8 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 17 Feb 2023 21:52:37 +0100 Subject: [PATCH] add instructions --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index f0e2880..91d2eb8 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,35 @@
+

Install

+ +Just clone it somewhere, make a reverse proxy rule and you're set. Example: + +```sh +doas apt install php php-curl nginx nginx-common git +git clone https://git.ahwx.org/pinternet /var/www/html/pinternet +cd /var/www/html/pinternet +``` + +Example NGINX configuration: + +```sh +server { + listen 80; + server_name pinternet.ahwx.org; + + root /var/www/html/pinternet; + index index.php; + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php-fpm.sock; + } +} +``` + + +

Credits:

* [LibreX](https://github.com/hnhx/librex) | [https://femboy.hu](https://femboy.hu) - image proxy & quite a bit of other code.