From a1f9599d3195ac91a70d256123bdb527652503a5 Mon Sep 17 00:00:00 2001 From: avail Date: Fri, 12 Feb 2021 11:20:27 +0100 Subject: [PATCH 1/3] Revert "Update README.md" This reverts commit 8cd078ebb7e9f22fc3688adbebef98bdc769ee0d. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f5b45b4..9d1f2f4 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ Development of Pomf has been moved to https://github.com/pomf/pomf, but the original code will still stay here as well if you fancy this outdated code for whatever reason. # Contact -I can be contacted via neku@pomf.se or twitter at [@nekunekus](https://twitter.com/nekunekus). +I can be contacted via neku@pomf.se or twitter at [@nekunekus](https://twitter.com/nekunekus). \ No newline at end of file From 92f3ddda44e86fe3f2a79042e7df22ec9890cd2e Mon Sep 17 00:00:00 2001 From: avail Date: Fri, 12 Feb 2021 11:20:59 +0100 Subject: [PATCH 2/3] Revert "Update readme to show new development repo" This reverts commit 247343966a9d426bb5a357e0300e55999fb3cab8. --- README.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d1f2f4..5d46840 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,48 @@ -# Moved -Development of Pomf has been moved to https://github.com/pomf/pomf, but the original code will still stay here as well if you fancy this outdated code for whatever reason. +# Pomf +Original development environment is Nginx + PHP5.5 + MySQL, but is confirmed to work with Apache 2.4 +and newer PHP versions. Should work with any other PDO-compatible database. -# Contact +This repo might be a bit out of date seeing as some clones have their own repos which get updated a lot more, however this still works and is the original code. + +# Install +For the purposes of this guide, we won't cover setting up Nginx, PHP, MySQL, +Node, or NPM. So we'll just assume you already have them all running well. + +## Compiling +The assets are minified and combined using [Grunt](http://gruntjs.com/). + +Assuming you already have Node and NPM working, compilation is easy: +``` +$ npm install -g grunt-cli +$ git clone https://github.com/nokonoko/Pomf.git +$ cd Pomf +$ npm install +$ grunt +``` +After this, the pomf site is now compressed and set up inside `dist/`. + +### Apache +If you are running Apache and want to compress your output when serving files, add to your `.htaccess` file: +``` +AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/x-javascript application/json +``` +Remember to enable `deflate_module` and `filter_module` modules in your Apache configuration file. + +## Configuring +The majority of settings are in `static/includes/settings.inc.php`. Read the +comments in that file for more information. + +For file size configuration, there is no server-side verification: we assume +that PHP and Nginx provide ample protection in this department. There is, +however, client-side configuration for max size, the `data-max-size` attribute +on the file input in `pages/upload_form.swig`. + +Make sure to disable PHP from being executed on the file download domain/directory (e.g a.site.com), otherwise a attacker can upload a malicious .php file and execute it on your server. + +## Todo + +* Clean up Moe code, a lot.. +* API keys? + +# Contact I can be contacted via neku@pomf.se or twitter at [@nekunekus](https://twitter.com/nekunekus). \ No newline at end of file From b7cbd0cee515e36008b68fb09cb6e9255ebc9cb2 Mon Sep 17 00:00:00 2001 From: avail Date: Fri, 12 Feb 2021 11:22:44 +0100 Subject: [PATCH 3/3] restore moved notice --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 5d46840..fc10175 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +# Moved +Development of Pomf has been moved to [pomf/pomf](https://github.com/pomf/pomf), but the original code will still stay here as well if you fancy this outdated code for whatever reason. + # Pomf Original development environment is Nginx + PHP5.5 + MySQL, but is confirmed to work with Apache 2.4 and newer PHP versions. Should work with any other PDO-compatible database.