dev/nginx/sites-available/44302.conf

33 lines
796 B
Text

server {
listen 44302 ssl http2;
server_name _;
include snippets/vlw.se-ssl.conf;
# 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;
}
}