From cf4fd59e7dc2936eb2e0407ebc07b1863d5b8de3 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 21 Feb 2017 15:54:19 -0500 Subject: [PATCH] Add more info to wiki --- collection.md | 7 +++++++ home.md | 3 ++- serversetup.md | 26 ++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 serversetup.md diff --git a/collection.md b/collection.md index 0537969..8338195 100644 --- a/collection.md +++ b/collection.md @@ -35,3 +35,10 @@ environments: 1. Create phinx and Hummingbird config files 2. Run the migrations. Based on the example file above, you'd run: `./vendor/bin/phinx migrate -e development` + +## Importing Anime: + +1. Login +2. Click the `[ Add Item ]` link on the Anime Collection page +3. Enter the name of the anime you wish to add, and select the appropriate search result +4. Save & Repeat as needed \ No newline at end of file diff --git a/home.md b/home.md index 4ae4c54..e258b18 100644 --- a/home.md +++ b/home.md @@ -5,4 +5,5 @@ Here is some more in-depth information about setting up Hummingbird. ## Pages * [Collection Setup](./collection) - how to set up the Anime collection -* [Configuration](./configuration) \ No newline at end of file +* [Configuration](./configuration) - what the configuration items mean +* [Server Setup](./serversetup) - how to setup your web server \ No newline at end of file diff --git a/serversetup.md b/serversetup.md new file mode 100644 index 0000000..5a6e82e --- /dev/null +++ b/serversetup.md @@ -0,0 +1,26 @@ +# Web Server Setup + +## nginx +Basic nginx setup + +```nginx +server { + location / { + try_files $uri $uri/ /index.php$uri?$args; + } + + location ~ ^(.+\.php)($|/) { + fastcgi_split_path_info ^(.+\.php)(.*)$; + fastcgi_index index.php; + } + + location ^~ /vendor { + deny all; + } +} +``` + +## Apache +Make sure to have `mod_rewrite` and `AllowOverride All` enabled in order to take +advantage of the included `.htaccess` file. If you don't wish to use an `.htaccess` file, +include the contents of the `.htaccess` file in your Apache configuration. \ No newline at end of file