"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-5086/doc/example-config-files/multidomain/jitsi.example.com.multidomain.example" (22 Jun 2021, 2023 Bytes) of package /linux/misc/jitsi-meet-5086.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 server {
    2     listen 80;
    3 
    4     server_name jitsi.example.com;
    5     # set the root
    6     root /srv/jitsi.example.com;
    7     # ssi on with javascript for multidomain variables in config.js
    8     ssi on;
    9     ssi_types application/x-javascript application/javascript;
   10     index index.html;
   11     set $prefix "";
   12 
   13     # BOSH
   14     location /http-bind {
   15         proxy_pass      http://localhost:5280/http-bind;
   16         proxy_set_header X-Forwarded-For $remote_addr;
   17         proxy_set_header Host $http_host;
   18     }
   19 
   20     # xmpp websockets
   21     location /xmpp-websocket {
   22         proxy_pass http://localhost:5280/xmpp-websocket;
   23         proxy_http_version 1.1;
   24         proxy_set_header Upgrade $http_upgrade;
   25         proxy_set_header Connection "upgrade";
   26         proxy_set_header Host $host;
   27         tcp_nodelay on;
   28     }
   29 
   30     gzip on;
   31     gzip_types text/plain text/css application/javascript application/json image/x-icon application/octet-stream application/wasm;
   32     gzip_vary on;
   33     gzip_proxied no-cache no-store private expired auth;
   34     gzip_min_length 512;
   35 
   36     location ~ ^/([^/?&:'"]+)$ {
   37         try_files $uri @root_path;
   38     }
   39 
   40     location @root_path {
   41         rewrite ^/(.*)$ / break;
   42     }
   43 
   44     location ~ ^/([^/?&:'"]+)/config.js$
   45     {
   46         set $subdomain "$1.";
   47         set $subdir "$1/";
   48 
   49         alias /etc/jitsi/meet/{{jitsi_meet_domain_name}}-config.js;
   50     }
   51 
   52     # Anything that didn't match above, and isn't a real file, assume it's a room name and redirect to /
   53     location ~ ^/([^/?&:'"]+)/(.*)$ {
   54         set $subdomain "$1.";
   55         set $subdir "$1/";
   56         rewrite ^/([^/?&:'"]+)/(.*)$ /$2;
   57     }
   58 
   59     # BOSH for subdomains
   60     location ~ ^/([^/?&:'"]+)/http-bind {
   61         set $subdomain "$1.";
   62         set $subdir "$1/";
   63         set $prefix "$1";
   64 
   65         rewrite ^/(.*)$ /http-bind;
   66     }
   67 
   68     # websockets for subdomains
   69     location ~ ^/([^/?&:'"]+)/xmpp-websocket {
   70         set $subdomain "$1.";
   71         set $subdir "$1/";
   72         set $prefix "$1";
   73 
   74         rewrite ^/(.*)$ /xmpp-websocket;
   75     }
   76 }