Consider putting public-facing files in a public folder instead of mixing with application files
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
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của LinkStackOrg/LinkStack
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
LinkStackOrg/LinkStack#1011 ·
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 55/100
LinkStackOrg/LinkStack#1008 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
LinkStackOrg/LinkStack#1007 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 44/100
LinkStackOrg/LinkStack#1003 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
LinkStackOrg/LinkStack#1002 ·
Tất cả issue của LinkStackOrg/LinkStack
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
MagnaCapax/PMSS#1142 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug 🐛
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
netalertx/NetAlertX#1856 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug Status: Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feature good first issue html mcv php
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
lorisleiva/laravel-docker#166 ·