LinkStack icon indicating copy to clipboard operation
LinkStack copied to clipboard

Consider putting public-facing files in a public folder instead of mixing with application files

Open lautriva opened this issue 3 months ago • 0 comments

LinkStack version

4.8.4

Description

Having all assets + index.php in a public folder then the webserver pointing to this public folder would remove the need to add custom rules to protect application + sensitive files in .htaccess (those are not read by nginx and caddy)

This is the recommended Laravel structure

Details about your system

Linkstack installed on server using Caddy + PHP (without using docker)

How to reproduce

Install Linkstack on a caddy server

Possible Solution

@block_files expression path_regexp('\\..*') || path_regexp('.*\\.sqlite')
respond @block_files 403

Additional Context

No response

lautriva avatar Sep 02 '25 06:09 lautriva