Go to file
2022-01-11 16:15:39 +01:00
static updated styles.css 2022-01-11 16:15:39 +01:00
templates fix: drop that for now, not working 2021-12-20 18:09:29 +01:00
.gitignore ignore that too and sort 2021-12-22 11:39:03 +01:00
app.py updated app.py to include about.html, base.html 2022-01-11 16:15:02 +01:00
Makefile hacking upload + generation 2021-12-06 12:22:00 +01:00
README.md very dodgy prototype 2021-12-17 18:50:34 +01:00
requirements.txt fix: use latest from git 2021-12-09 11:57:13 +01:00

temporary-indexing-app

An app that uses the temp-index python module.

deploy it

Install pdfcpu to /usr/bin/pdfcpu.

sudo apt-get install libtiff5-dev libjpeg-dev libopenjp2-7-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
libharfbuzz-dev libfribidi-dev libxcb1-dev build-essential python3-dev
sudo apt install nginx certbot python3-certbot-nginx
sudo certbot -d foo.com index.simonbrowne.biz
server {
  listen 80;
  server_name index.simonbrowne.biz;
  return 301 https://$server_name$request_uri;
}

server {
  listen 443 ssl;
  server_name index.simonbrowne.biz;
  root /var/www/library/varia-library-website;

  ssl_certificate /etc/letsencrypt/live/index.simonbrowne.biz/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/index.simonbrowne.biz/privkey.pem;
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers HIGH:!aNULL:!MD5;

  access_log /var/log/nginx/index.simonbrowne.biz.log;
  error_log /var/log/nginx/index.simonbrowne.biz.log;

  error_page 404 /404.html;

  location / {
        proxy_pass         http://127.0.0.1:5000/;
        proxy_redirect     off;

        proxy_set_header   Host                 $host;
        proxy_set_header   X-Real-IP            $remote_addr;
        proxy_set_header   X-Forwarded-For      $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto    $scheme;
  }
}
git clone https://git.vvvvvvaria.org/simoon/temporary-indexing-app /var/www/temporary-indexing-app
cd /var/www/temporary-indexing-app
tmux
make

update it

tmux attach
ctrl-c ...
git pull
make