2018-08-12 00:03:51 +02:00
|
|
|
location __PATH__/ {
|
2020-08-08 19:05:14 +02:00
|
|
|
alias __FINALPATH__/;
|
2015-08-03 11:35:01 +02:00
|
|
|
|
2020-09-17 09:02:08 +02:00
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
include snippets/fastcgi-php.conf;
|
|
|
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm__NAME__.sock;
|
2020-08-08 19:05:14 +02:00
|
|
|
}
|
|
|
|
|
2020-09-17 09:13:54 +02:00
|
|
|
location /ws/ {
|
2020-09-17 09:02:08 +02:00
|
|
|
proxy_pass http://127.0.0.1:__PORT__/;
|
2020-08-08 19:05:14 +02:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
2020-09-17 09:02:08 +02:00
|
|
|
include proxy_params;
|
2020-08-08 19:05:14 +02:00
|
|
|
}
|
2018-08-12 00:03:51 +02:00
|
|
|
}
|