Changes between Version 6 and Version 7 of ethercalc


Ignore:
Timestamp:
May 8, 2021, 5:16:35 PM (5 months ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ethercalc

    v6 v7  
    1818
    1919{{{
    20 <VirtualHost 209.234.253.233:443>
     20<VirtualHost *:443>
    2121        # web config for calc.mayfirst.org
    2222        ServerName calc.mayfirst.org
     
    3131        SSLEngine On
    3232        SSLProxyEngine On
    33         SSLCertificateFile /etc/letsencrypt/live/calc.mayfirst.org/fullchain.pem
     33        SSLCertificateFile /etc/letsencrypt/live/calc.mayfirst.org/fullchain.pem
    3434        SSLCertificateKeyFile /etc/letsencrypt/live/calc.mayfirst.org/privkey.pem
     35
    3536        ProxyPreserveHost On
    3637        ProxyRequests off
    3738        ProxyPass / http://localhost:8000/
    3839        ProxyPassReverse / http://localhost:8000/
     40
     41        # Set up websockets to work through the proxy
     42        RewriteEngine On
     43        RewriteCond %{REQUEST_URI}  ^/socket.io            [NC]
     44        RewriteCond %{QUERY_STRING} transport=websocket    [NC]
     45        RewriteRule /(.*)           ws://localhost:8000/$1 [P,L]
     46
     47        # Set up an alias for static files. Saves having to serve them from node.js
     48        Alias /static /home/calc/node_modules/ethercalc/static
     49        Alias /l10n /home/calc/node_modules/ethercalc/l10n
     50        Alias /images /hoe/calc/node_modules/ethercalc/images
     51
     52        ErrorLog /var/log/apache2/calc.error.log
     53        CustomLog /var/log/apache2/calc.log combined
     54
    3955</VirtualHost>
    4056}}}