forked from studio-PAON-AVH/studio-paon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
109 lines (98 loc) · 2.87 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
map $http_upgrade $connection_upgrade {
default upgrade;
'' '';
}
server {
listen 80;
listen [::]:80;
server_name studio-paon.edrlab.org;
# Suivant le repertoire de déploiement du site
root /var/www/studio-paon;
client_max_body_size 0;
proxy_request_buffering off;
proxy_buffering off;
proxy_read_timeout 600;
error_log /var/log/nginx/error_studio-paon.edrlab.org.log error;
access_log /var/log/nginx/access_studio-paon.edrlab.org.log combined;
# Add index.php to the list if you are using PHP
index fr-FR/home.xhtml;
server_name studio-paon.edrlab.org;
# Redirections pour scenari / StudioPaon
location /~~static/ {
alias /var/www/studio-paon/;
}
location /~~static/#portletCode#/fr-FR {
alias /var/www/studio-paon/chain/fr-FR;
}
location /~~static/import/fr-FR {
alias /var/www/studio-paon/import/fr-FR;
}
location /~~static/depot/fr-FR {
alias /var/www/studio-paon/depot/fr-FR;
}
location /~~import/~~search {
proxy_pass http://127.0.0.1:8080/scenari/import/search;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
location /~~import/~~write {
proxy_pass http://127.0.0.1:8080/scenari/import;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
location /~~import/~~repos {
internal;
alias /var/lib/scenari/data/prl-import;
}
location /~~import/~~edit
{
return 301 https://studio-paon.edrlab.org/~~static/import/fr-FR/depot.xhtml;
}
location /~~import {
proxy_pass http://127.0.0.1:8080/scenari/import/tree;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
location /~~search {
proxy_pass http://127.0.0.1:8080/scenari/depot/search;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
location /~~chain {
proxy_pass http://127.0.0.1:8080/scenari/chain;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
location /~~write {
proxy_pass http://127.0.0.1:8080/scenari/depot;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
location /~~depot/~~repos {
internal;
alias /var/lib/scenari/data/prl-depot;
}
location /~~edit
{
return 301 http://studio-paon.edrlab.org/~~static/depot/fr-FR/depot.xhtml;
}
location / {
proxy_pass http://127.0.0.1:8080/scenari/depot/tree;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
}