Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#935 2 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
laravel, php
Ambito
backend, security

Direzione di ricerca

Start by reading how the current deployment serves index.php and assets, and review the .htaccess protections mentioned in the issue. Check how the Laravel public-directory structure could fit LinkStack and what deployment changes it would require; the issue does not identify specific files or tests. Done means application and sensitive files are no longer exposed when the webserver points at the public folder, including under Caddy or nginx.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
PHP
Stelle
3.9k
Fork
440
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LinkStackOrg/LinkStack

Tutte le issue di LinkStackOrg/LinkStack

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.