add instructions

This commit is contained in:
Ahwx 2023-02-17 21:52:37 +01:00 committed by GitHub
parent 2200ce9fb6
commit c633e79d59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,35 @@
<br>
<h2 align="center">Install</h2>
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;
}
}
```
<h3 align="center">Credits:</h3>
* [LibreX](https://github.com/hnhx/librex) | [https://femboy.hu](https://femboy.hu) - image proxy & quite a bit of other code.