aboutsummaryrefslogtreecommitdiff
path: root/app/jitsi/config/nginx.conf
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@dufour.io>2021-02-01 09:50:38 +0100
committerQuentin Dufour <quentin@dufour.io>2021-02-01 09:50:38 +0100
commit088c9df20ce62019244b71120edef9b9bded9523 (patch)
tree2ba4a73e5e5fdc62e48017f81a692cc3907edabf /app/jitsi/config/nginx.conf
parent0a87d26e47646fb0a3e9a9399ea83b39640583b1 (diff)
downloadinfrastructure-088c9df20ce62019244b71120edef9b9bded9523.tar.gz
infrastructure-088c9df20ce62019244b71120edef9b9bded9523.zip
Prepare Nomad deployment
Diffstat (limited to 'app/jitsi/config/nginx.conf')
-rw-r--r--app/jitsi/config/nginx.conf42
1 files changed, 42 insertions, 0 deletions
diff --git a/app/jitsi/config/nginx.conf b/app/jitsi/config/nginx.conf
new file mode 100644
index 0000000..b2213e9
--- /dev/null
+++ b/app/jitsi/config/nginx.conf
@@ -0,0 +1,42 @@
+# some doc: https://www.nginx.com/resources/wiki/start/topics/examples/full/
+error_log /dev/stderr;
+
+events {}
+
+http {
+ access_log /dev/stdout;
+ server_names_hash_bucket_size 64;
+
+ server {
+ listen 0.0.0.0:{{ env "NOMAD_PORT_https_port" }} ssl http2 default_server;
+ listen [::]:{{ env "NOMAD_PORT_https_port" }} ssl http2 default_server;
+ server_name _;
+ ssl_certificate /etc/nginx/jitsi.crt;
+ ssl_certificate_key /etc/nginx/jitsi.key;
+ root /srv/jitsi-meet;
+ index index.html;
+
+ # lot of work would be needed to improve location rules
+ # - in order to allow - and _ in the URL, even space
+ # - while not shadowing other files (.js and following locations)
+ # - passed some times twice on the problem, not as easy as it seems
+ location ~ ^/([a-zA-Z0-9=\?]+)$ {
+ rewrite ^/(.*)$ / break;
+ }
+ location / {
+ ssi on;
+ }
+
+ location /external_api.js {
+ alias /srv/jitsi-meet/libs/external_api.min.js;
+ }
+
+ location /http-bind {
+ proxy_pass http://{{ env "NOMAD_ADDR_xmpp_port" }}/http-bind;
+ proxy_set_header X-Forwarded-For \$remote_addr;
+ proxy_set_header Host \$http_host;
+ }
+
+
+ }
+}