31 lines
749 B
Text
31 lines
749 B
Text
server {
|
|
listen 8003;
|
|
|
|
server_name _;
|
|
|
|
# Reflect
|
|
root /var/www/fw/reflect/public;
|
|
# iCellate API peer helper
|
|
# root /var/www/api-peer-wrapper/public;
|
|
# Vegvisir
|
|
# root /var/www/vegvisir/public;
|
|
|
|
index index.html index.php;
|
|
|
|
# location ~ /assets/* {
|
|
# try_files $uri $uri/ =404;
|
|
# add_header Access-Control-Allow-Origin *;
|
|
# }
|
|
|
|
location ~ /* {
|
|
try_files /index.php =503;
|
|
|
|
add_header Access-Control-Allow-Origin $http_origin always;
|
|
add_header Access-Control-Allow-Methods GET,POST,PUT,PATCH,DELETE,OPTIONS always;
|
|
add_header Access-Control-Allow-Headers Authorization,Content-Type always;
|
|
|
|
include snippets/fastcgi-php.conf;
|
|
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
|
|
# fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
|
}
|
|
}
|