zx81

Emulateur Sinclair ZX81 dans le navigateur : Z80, ROM Sinclair, tout en JavaScript
git clone https://git.schurger.org/zx81.git
Log | Files | Refs | README

zx81.schurger.org (1163B)


      1 # https://zx81.schurger.org : émulateur ZX81 dans le navigateur (fichiers statiques,
      2 # dépôt ~/src/perso/zx81 de hotrats, publié par « make deploy »).
      3 # TLS on 8443 behind sslh, like the other vhosts; wildcard certificate.
      4 server {
      5     server_name zx81.schurger.org;
      6     listen 8443 ssl;
      7     http2 on;
      8     ssl_certificate /etc/letsencrypt/live/schurger.org/fullchain.pem;
      9     ssl_certificate_key /etc/letsencrypt/live/schurger.org/privkey.pem;
     10     include /etc/letsencrypt/options-ssl-nginx.conf;
     11     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
     12 
     13     root /var/www/zx81.schurger.org;
     14     index index.html;
     15 
     16     types {
     17         text/html html;
     18         text/css css;
     19         text/javascript js mjs;
     20         application/octet-stream rom p;
     21         text/plain bas;
     22         image/svg+xml svg;
     23     }
     24 
     25     gzip on;
     26     gzip_types text/css text/javascript text/plain application/octet-stream;
     27 
     28     location ~* \.(rom|p|bas)$ {
     29         add_header Cache-Control "no-cache";
     30     }
     31 
     32     location / {
     33         try_files $uri $uri/ =404;
     34     }
     35 }
     36 
     37 server {
     38     listen 80;
     39     listen [::]:80;
     40     server_name zx81.schurger.org;
     41     return 301 https://$host$request_uri;
     42 }