Commit 8a54bab5 authored by Lukas Böhm's avatar Lukas Böhm
Browse files

update README.md

parent 0d8b8851
......@@ -7,3 +7,58 @@ Eine Tolle Webapp zum Austausch von Dateien
`docker-compose up`
## Traditional Install
```
git clone
sudo apt update
sudo apt install nginx redis-server certbox
cd /etc/nginx
sudo vim ./sites-available/chiefsend.conf <--- paste the config in there
sudo ln -ls ./sites-available/chiefsend.conf ./sites-enabled/chiefsend.conf
sudo rm -f ./sites-enabled/default
sudo certbot certonly -d send.chief.zone
**enable services and stuff**
```
### nginx config example:
```
server {
listen 80;
listen [::]:80;
server_name send.chief.zone;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name send.chief.zone;
ssl_certificate /etc/letsencrypt/live/send.chief.zone/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/send.chief.zone/privkey.pem; # managed by Certbot
access_log /var/log/nginx/chiefsend_access.log;
if ($http_host !~ "^send.chief.zone"){
rewrite ^(.*)$ $scheme://send.chief.zone/$1 redirect;
}
client_max_body_size 500M;
proxy_buffer_size 1024k;
proxy_buffers 4 1024k;
proxy_busy_buffers_size 1024k;
location / {
include proxy_params;
proxy_pass http://localhost:5000;
}
location /static {
alias /home/chief/chiefsend/app/static;
expires 1d;
}
}
```
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