UUGRN:Services/ascii.uugrn.org
		
		
		
		
		
		Zur Navigation springen
		Zur Suche springen
		
		
	
        __  ____  ______ __________   ____  _________ _
ASCII  / / / / / / / __ `/ ___/ __ \ / __ \/ ___/ __ `/
DRAW _/ /_/ / /_/ / /_/ / /  / / / // /_/ / /  / /_/ /
PAD (_)__,_/\__,_/\__, /_/  /_/ /_(_)____/_/   \__, /
         ADMIN:  /____/ sh+admin[at]uugrn.org /____/
 OS: Debian  Version: 10 (Buster)  Architecture: amd64
 CPU: 1x Intel Xeon Processor (Skylake, IBRS)
 SPEED: 2294Mhz  Memory: 1983MB
Welcome to {ascii,draw,pad}.uugrn.org
ASCIIFLOW SERVER
Asciiflow2 - zeichnen in ASCII.
- Host: ascii.uugrn.org
ADMIN: sdk (sh+uugrn@uugrn.org)
INSTALL LOG
OS: Debian Buster (10)
Installierte Software
- asciiflow
- nginx
Asciiflow installieren
$ apt-get install closure-compiler $ cd /data $ git clone https://github.com/lewish/asciiflow2.git $ chown -R www-data:www-data asciiflow2 $ cd asciiflow2 $ ./compile.sh
Ich habe Asciiflow modifiziert und Referenzen zu Google entfernt. Ein Diff der Änderungen befindet sich in /data/asciiflow-modifications.diff.
NGINX Reverse Proxy installieren
War schon installiert (siehe pad.uugrn.org)
$ cat /etc/nginx/sites-enabled/asciiflow
server {
        listen       443 ssl;
        server_name  ascii.uugrn.org;
        access_log  /var/log/nginx/ascii.uugrn.org.access.log;
        error_log   /var/log/nginx/ascii.uugrn.org.error.log;
        ssl_certificate /etc/letsencrypt/live/ascii.uugrn.org/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/ascii.uugrn.org/privkey.pem;
        include /etc/letsencrypt/options-ssl-nginx.conf;
        ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
        location / {
                root /data/asciiflow2/;
        }
}
# we're in the http context here
map $http_upgrade $connection_upgrade {
  default upgrade;
  ''      close;
}
server {
    listen      80;
    server_name ascii.uugrn.org;
    rewrite     ^(.*)   https://$server_name$1 permanent;
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/ascii.uugrn.org/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/ascii.uugrn.org/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
Letsencrypt einrichten
War schon installiert (siehe pad.uugrn.org)
$ certbot -d ascii.uugrn.org <run through wizard> service nginx reload