Add demo content and documentation for FolderWeb
Add about page with project philosophy and technical details Add articles about Markdown, templates, and getting started Implement demo content system that shows when no user content exists Update logo to show FolderWeb branding Improve Apache configuration for development environment
This commit is contained in:
parent
36a3221dbb
commit
4c697122ab
19 changed files with 660 additions and 293 deletions
|
|
@ -4,10 +4,13 @@
|
|||
Require all granted
|
||||
</Directory>
|
||||
|
||||
# Alias for app assets (styles, fonts, etc.)
|
||||
# Alias for app assets (more specific aliases must come first)
|
||||
Alias /app/default-styles /var/www/app/default/styles
|
||||
Alias /app/styles /var/www/custom/styles
|
||||
Alias /app/fonts /var/www/custom/fonts
|
||||
Alias /app/default-styles /var/www/app/default/styles
|
||||
|
||||
# Alias for app directory (general fallback)
|
||||
Alias /app /var/www/app
|
||||
|
||||
<Directory /var/www/custom/styles>
|
||||
Require all granted
|
||||
|
|
|
|||
20
development/apache/default.conf
Normal file
20
development/apache/default.conf
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<VirtualHost *:80>
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/html
|
||||
|
||||
<Directory /var/www/html>
|
||||
Options -Indexes +FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
DirectoryIndex disabled
|
||||
|
||||
# Route all requests through the router
|
||||
RewriteEngine On
|
||||
# Don't rewrite if it's already going to /app/
|
||||
RewriteCond %{REQUEST_URI} !^/app/
|
||||
RewriteRule ^(.*)$ /app/router.php [L,QSA]
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
|
|
@ -1,28 +1,27 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
custom:
|
||||
image: php:8.3.12-apache
|
||||
container_name: folderweb-custom
|
||||
working_dir: /var/www/html/
|
||||
volumes:
|
||||
- ../app:/var/www/app:z
|
||||
- ../content:/var/www/html:z
|
||||
- ../custom:/var/www/custom:z
|
||||
- ../docs:/var/www/html/docs:z
|
||||
- ./apache/custom.conf:/etc/apache2/conf-available/custom.conf:z
|
||||
ports:
|
||||
- "4040:80"
|
||||
command: bash -c "a2enconf custom && a2enmod rewrite && apache2-foreground"
|
||||
# custom:
|
||||
# image: php:8.3.12-apache
|
||||
# container_name: folderweb-custom
|
||||
# working_dir: /var/www/html/
|
||||
# volumes:
|
||||
# - ../app:/var/www/app:z
|
||||
# - ../content:/var/www/html:z
|
||||
# - ../custom:/var/www/custom:z
|
||||
# - ../docs:/var/www/html/docs:z
|
||||
# - ./apache/custom.conf:/etc/apache2/conf-available/custom.conf:z
|
||||
# ports:
|
||||
# - "4040:80"
|
||||
# command: bash -c "a2enconf custom && a2enmod rewrite && apache2-foreground"
|
||||
default:
|
||||
image: php:8.3.12-apache
|
||||
container_name: folderweb-default
|
||||
working_dir: /var/www/html/
|
||||
volumes:
|
||||
- ../app:/var/www/app:z
|
||||
- ../content:/var/www/html:z
|
||||
- ../docs:/var/www/html/docs:z
|
||||
- ./apache/custom.conf:/etc/apache2/conf-available/custom.conf:z
|
||||
- ./apache/default.conf:/etc/apache2/sites-available/000-default.conf:z
|
||||
ports:
|
||||
- "8080:80"
|
||||
command: bash -c "a2enconf custom && a2enmod rewrite && apache2-foreground"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue