From de427ac21cdc84b5d48767bedcd613d124a07cb3 Mon Sep 17 00:00:00 2001 From: Samuel ORTION Date: Fri, 11 Jun 2021 10:40:23 +0200 Subject: [PATCH] Added INSTALL.md and conf files --- INSTALL.md | 21 +++++++++++++++++++++ apache2.conf | 12 ++++++++++++ costs.txt | 22 ++++++++++++++++++++++ nginx.conf | 22 ++++++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 INSTALL.md create mode 100644 apache2.conf create mode 100644 costs.txt create mode 100755 nginx.conf diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..b97bcc3 --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,21 @@ +# Install Website + +## Create database + +```bash +su - +sudo -u postgres psql +``` + +```sql +create user cot with password cot; +create database cot with owner cot; +\q +``` + +## Required php packages + +* php-pdo +* php-pgsql +* composer +* PHPMailer diff --git a/apache2.conf b/apache2.conf new file mode 100644 index 0000000..c8dbcfc --- /dev/null +++ b/apache2.conf @@ -0,0 +1,12 @@ + + ServerName cocottes + ServerAlias www.cocottes + DocumentRoot "/home/ortion/Documents/projects/LesCocottesMinutes/www/public" + + Options +FollowSymLinks + AllowOverride all + Require all granted + + ErrorLog /var/log/apache2/error.cocottes.log + CustomLog /var/log/apache2/access.cocottes.log combined + \ No newline at end of file diff --git a/costs.txt b/costs.txt new file mode 100644 index 0000000..2a1a215 --- /dev/null +++ b/costs.txt @@ -0,0 +1,22 @@ +Website yearly costs +==================== + +- Domain Name @ Gandi.net + - cocottes-minutes.eu + 5.64 € 1y then 14.40 € / y + - cocottes-minutes.fr + 14.40 € / y + - cocottes-minutes.org + 10.79 € 1y then 18.79€ / y + - cocottes-minutes.com + 15.60 € / y + +- Subdomain under univ-evry.fr such as cocottes.minutes.asso.univ-evry.fr + - free + +- WebHost + + - Dedicatd VM on Oracle Cloud + - free (needed a registered credit card, but no fee) + - Usage of any of my VPS (Samuel ORTION) + - almost free diff --git a/nginx.conf b/nginx.conf new file mode 100755 index 0000000..6c7ddba --- /dev/null +++ b/nginx.conf @@ -0,0 +1,22 @@ +server { + listen 80; + server_name cocottes; + return 302 https://cocottes; +} + +server { + listen 443 ssl; + server_name cocottes; + root /var/www/cocottes; + location / { + + } + index index.php; + # managed by Certbot + ssl_certificate /etc/letsencrypt/live/cocottes/cert.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/cocottes/privkey.pem; # managed by Certbot + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/www.sock; + } +}