How to install » History » Version 2
Olivier Bitsch, 11/10/2023 03:00 PM
| 1 | 1 | Olivier Bitsch | # How to install |
|---|---|---|---|
| 2 | |||
| 3 | 2 | Olivier Bitsch | Installation of edumeet package is straight forward: |
| 4 | |||
| 5 | 1 | Olivier Bitsch | ~~~ |
| 6 | echo "deb [trusted=yes] https://projects.iabsis.com/repository/edumeet-pkg/debian . main" > /etc/apt/sources.list.d/edumeet.list |
||
| 7 | apt update |
||
| 8 | apt install edumeet |
||
| 9 | ~~~ |
||
| 10 | 2 | Olivier Bitsch | |
| 11 | Then you can configure for nginx, here a sample config file. |
||
| 12 | |||
| 13 | ~~~ |
||
| 14 | map $http_upgrade $connection_upgrade { |
||
| 15 | default upgrade; |
||
| 16 | '' close; |
||
| 17 | } |
||
| 18 | |||
| 19 | |||
| 20 | server { |
||
| 21 | listen 80; |
||
| 22 | server_name _; |
||
| 23 | |||
| 24 | location / { |
||
| 25 | root /usr/share/edumeet/public; |
||
| 26 | try_files $uri $uri/ /index.html; |
||
| 27 | } |
||
| 28 | |||
| 29 | location /api) { |
||
| 30 | proxy_set_header Host $host; |
||
| 31 | proxy_pass http://127.0.0.1:8080; |
||
| 32 | proxy_http_version 1.1; |
||
| 33 | proxy_set_header X-Forwarded-Proto $scheme; |
||
| 34 | proxy_set_header X-Forwarded-Port $server_port; |
||
| 35 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||
| 36 | } |
||
| 37 | |||
| 38 | location /socket.io { |
||
| 39 | proxy_pass http://127.0.0.1:8080; |
||
| 40 | proxy_http_version 1.1; |
||
| 41 | proxy_set_header Upgrade $http_upgrade; |
||
| 42 | proxy_set_header Connection "upgrade"; |
||
| 43 | } |
||
| 44 | |||
| 45 | } |
||
| 46 | ~~~ |
||
| 47 | |||
| 48 | > Don't forgot to replace `server_name _;` by your domain if you are not behind a reverse proxy and install `python3-certbot-nginx` to issue certificate then. |