Added INSTALL.md and conf files

This commit is contained in:
Samuel Ortion 2021-06-11 10:40:23 +02:00
parent 80c373d4ce
commit de427ac21c
4 changed files with 77 additions and 0 deletions

21
INSTALL.md Normal file
View File

@ -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

12
apache2.conf Normal file
View File

@ -0,0 +1,12 @@
<VirtualHost *:80>
ServerName cocottes
ServerAlias www.cocottes
DocumentRoot "/home/ortion/Documents/projects/LesCocottesMinutes/www/public"
<Directory "/home/ortion/Documents/projects/LesCocottesMinutes/www/public">
Options +FollowSymLinks
AllowOverride all
Require all granted
</Directory>
ErrorLog /var/log/apache2/error.cocottes.log
CustomLog /var/log/apache2/access.cocottes.log combined
</VirtualHost>

22
costs.txt Normal file
View File

@ -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

22
nginx.conf Executable file
View File

@ -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;
}
}