Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#935 2 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
laravel, php
Lĩnh vực
backend, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
PHP
Star
3.9k
Fork
440
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LinkStackOrg/LinkStack

Tất cả issue của LinkStackOrg/LinkStack

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.