Commit 3c927d1c authored by Kalinka's avatar Kalinka
Browse files

Added Readme

Updated nginx.conf to common stuff
parent 4e51f908
# ogame-apiserver #
## About ##
ogame-apiserver allows people without an apikey using OGames API in a friendly manner.
The operator of an ogame-apiserver needs to have his __own__ APIKEY from OGame which can be requested [here](
## Requirements ##
* php7.1.3 or later
* redis-server
* webserver of your choice, simple nginx+php7.2 config supplied in /nginx/
* git
* composer
## Setup on debian stretch ##
* add surys php repo
echo "deb stretch main" | tee /etc/apt/sources.list.d/php.list
wget -q -O- | apt-key add -
apt update
* install php, nginx, redis-server, composer, git
apt install php7.2 php7.2-cli php7.2-common php7.2-curl php7.2-fpm php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql \
php7.2-opcache php7.2-readline php7.2-xml php7.2-zip nginx-full composer redis-server git
* set redis-server password
echo "requirepass YourHighSecurityRedisPassword" >> /etc/redis/redis.conf
systemctl restart redis
* get sources, configure your environment, install dependencies
cd /var/www
git clone
cd apiserver
cp .env.dist .env
editor .env
composer install
* add nginx site, edit config to meet your FQDN
cp /var/www/apiserver/nginx/ /etc/nginx/sites-available/
editor /etc/nginx/sites-available/
......@@ -41,9 +41,9 @@ server {
root /var/www/apiserver/public;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
index index.php;
location / {
# First attempt to serve request as file, then
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment