server {
    listen 8080;
    server_name _;

    root /var/www/emailproxy-ui;
    index index.php;

    access_log /home/crt/helper-emailproxy/logs/nginx/nginx-access.log;
    error_log /home/crt/helper-emailproxy/logs/nginx/nginx-error.log;

    location / {
        try_files $uri $uri/ =404;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.2-fpm.sock; # maybe ajust this if u got older version yk
    }

    location ~ /\.ht {
        deny all;
    }
}