[CollEc] New CollEc

Düben, Christian Christian.Dueben at uni-hamburg.de
Fri Aug 7 17:31:08 UTC 2020


I replaced the placeholder video in the web application with an actual tutorial. It introduces the user to the basics of graphs and explains the app's different functionalities. Feel free to provide feedback on it.

What I did not get to work is properly linking the app to test.collec.repec.org. I am unexperienced with Apache and have no idea how to fix that configuration. The ShinyProxy website (https://www.shinyproxy.io/security/) mentions a configuration using Nginx:

server {
  listen                80;
  server_name           shinyproxy.yourdomain.com;
  rewrite     ^(.*)     https://$server_name$1 permanent;
}

server {
  listen                443;
  server_name           shinyproxy.yourdomain.com;
  access_log            /var/log/nginx/shinyproxy.access.log;
  error_log             /var/log/nginx/shinyproxy.error.log error;

  ssl on;
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

  ssl_certificate       /etc/ssl/certs/yourdomain.com.crt;
  ssl_certificate_key   /etc/ssl/private/yourdomain.com.key;

   location / {
       proxy_pass          http://127.0.0.1:8080/;

       proxy_http_version 1.1;
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection "upgrade";
       proxy_read_timeout 600s;

       proxy_redirect    off;
       proxy_set_header  Host             $http_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;
     }

}

My questions on Stack Overflow (https://stackoverflow.com/q/63112223/9084488) and Server Fault (https://serverfault.com/q/1029219/587099) asking to translate that code to Apache did, unfortunately, not invoke any answers or comments.

Does anyone on this list know how to do this? The current configuration is:

<VirtualHost *:80>
  ServerName test.collec.repec.org
  ServerAlias test.collec.openlib.org
  ErrorLog /var/log/apache2/collec.proxy-error.log
  CustomLog /var/log/apache2/collec-access.log  combined
  UseCanonicalName Off
  ProxyPass / http://localhost:8080/
  ProxyPassReverse  / http://localhost:8080/
  RewriteEngine on
  RewriteCond %{HTTP:Upgrade} =websocket
  RewriteRule /(.*) ws://localhost:8080/$1 [P,L]
</VirtualHost>


Christian Düben
Research Associate
Chair of Macroeconomics
Hamburg University
Von-Melle-Park 5, Room 3102
20146 Hamburg
Germany
+49 40 42838 1898
christian.dueben at uni-hamburg.de<mailto:christian.dueben at uni-hamburg.de>
http://www.christian-dueben.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openlib.org/pipermail/collec-run/attachments/20200807/bd09cb4d/attachment.htm>


More information about the CollEc-run mailing list