Skip to content

Commit

Permalink
Scrollbar update
Browse files Browse the repository at this point in the history
  • Loading branch information
atomjoy committed Jul 16, 2024
1 parent 52f44cf commit 5f85155
Show file tree
Hide file tree
Showing 109 changed files with 875 additions and 1,623 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ yarn-error.log
/.fleet
/.idea
# /.vscode
/public_html
61 changes: 48 additions & 13 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,21 +1,56 @@
# Php 8.2 Ovh
# SetEnv PHP_VER 8_2
# SetEnv REGISTER_GLOBALS 0

# Hide files
# Php 8.2 Small.pl hosting
AddType application/x-httpd-php82 .php

DirectoryIndex index.php
Options -Indexes -MultiViews +SymLinksIfOwnerMatch
# Options -Indexes -MultiViews +FollowSymlinks

# That was ONLY to protect you from 500 errors if your server did not have mod_rewrite enabled
#<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# Root to public
RewriteRule ^$ public/index.php [L]
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]
RewriteRule (^\.|/\.) - [F]

# SSL without www (copy to public .htaccess)
#RewriteEngine On
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [L,R=301,NC]

# SSL http to https (copy to public .htaccess)
#RewriteEngine On
#RewriteCond %{SERVER_PORT} 80
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NC]

# Trailing slash (copy to public .htaccess)
#RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)/$ /$1 [R=301,L,NC]
#</IfModule>

#<IfModule mod_rewrite.c>
# Directory deny access
RewriteEngine on
RewriteRule ^(logs|storage|backup) - [F]
#</IfModule>

<Files .env>
Order allow,deny
Deny from all
</Files>

<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>

DirectoryIndex index.php
# Options -Indexes -MultiViews +FollowSymlinks
Options -Indexes -MultiViews +SymLinksIfOwnerMatch

# Disable directory browsing
RewriteEngine on
# If not public dir
RewriteCond %{REQUEST_URI} !^public_html
# Redirect to dir
RewriteRule ^(.*)$ public_html/$1 [L]
# Show server error (dont create error.php)
RewriteRule ^(.*)$ error.php [L]
<FilesMatch ".(jpg|jpeg|png|gif|ico|webp)$">
Header set Cache-Control "max-age=86400, public"
</FilesMatch>
28 changes: 28 additions & 0 deletions .htaccess_public_html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Disable
Order deny,allow
Deny from all

# SetEnv PHP_VER 8_2
# SetEnv REGISTER_GLOBALS 0

# Php 8.2 Small.pl hosting
AddType application/x-httpd-php82 .php

# Hide files
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>

DirectoryIndex index.php
# Options -Indexes -MultiViews +FollowSymlinks
Options -Indexes -MultiViews +SymLinksIfOwnerMatch

# Disable directory browsing
RewriteEngine on
# If not public dir
RewriteCond %{REQUEST_URI} !^public_html
# Redirect to dir
RewriteRule ^(.*)$ public_html/$1 [L]
# Show server error (dont create error.php)
RewriteRule ^(.*)$ error.php [L]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ return [

```sh
php artisan key:generate
php artisan migrate:fresh
php artisan config:clear
php artisan storage:link
php artisan migrate:fresh

php artisan serve
php artisan serve --host=localhost --port=8000
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AppServiceProvider extends ServiceProvider
public function register(): void
{
// Rewrite public dir to public_html shared hosting
$this->app->usePublicPath(app()->basePath('public_html'));
// $this->app->usePublicPath(app()->basePath('public_html'));

// $this->app->bind('path.public', function () {
// return base_path() . '/public_html';
Expand Down
Loading

0 comments on commit 5f85155

Please sign in to comment.