forked from H2-invent/jitsi-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
95 lines (77 loc) · 2.35 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#/etc/nginx/sites-enabled/jitsi-admin.con
upstream jitsi-admin {
server unix:/var/run/php/php-fpm.sock;
}
upstream keycloak {
server 127.0.0.1:8080;
}
server {
listen 80 default_server;
server_name _;
root /var/www/jitsi-admin/public;
index index.php;
# Add Headers
add_header X-Frame-Options SAMEORIGIN always;
add_header X-XSS-Protection "1; mode=block" always;
more_set_headers 'Server: unset';
more_set_headers 'x-powered-by: unset';
# Client Configuation
client_max_body_size 10M;
# Default Symfony Location Configuration
location / {
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php(/|$) {
fastcgi_pass jitsi-admin;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
location ~ \.php$ {
return 404;
}
location /ws/.well-known/mercure {
proxy_pass http://127.0.0.1:3000/.well-known/mercure;
proxy_set_header Host $host;
proxy_set_header X_Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /ws {
proxy_pass http://127.0.0.1:3000/ws;
proxy_set_header Host $host;
proxy_set_header X_Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
}
location /.well-known/mercure {
proxy_pass http://127.0.0.1:3000/.well-known/mercure;
proxy_set_header Host $host;
proxy_set_header X_Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
}
location /realms{
gzip off;
client_max_body_size 256M;
proxy_read_timeout 360;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://keycloak/;
}
}