Compare commits
6 Commits
949f3e18ed
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 40afe3f05f | |||
| 3192616e59 | |||
| a7e4f70260 | |||
| 2fa1e90070 | |||
| cfb02eb10f | |||
| 7e03b74c2d |
@@ -1,12 +1,12 @@
|
||||
Options -Indexes
|
||||
RewriteEngine On
|
||||
RewriteBase /sinergi/
|
||||
RewriteBase /
|
||||
|
||||
# Allow direct access to public assets
|
||||
RewriteCond %{REQUEST_URI} ^/sinergi/public/ [NC]
|
||||
RewriteCond %{REQUEST_URI} ^/public/ [NC]
|
||||
RewriteRule ^ - [L]
|
||||
|
||||
# Route everything else to index.php
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
FROM php:8.1-apache
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libpng-dev libjpeg-dev libzip-dev unzip \
|
||||
&& docker-php-ext-install pdo pdo_mysql gd zip \
|
||||
&& a2enmod rewrite
|
||||
|
||||
COPY . /var/www/html/
|
||||
|
||||
RUN echo '<Directory /var/www/html>\n\
|
||||
AllowOverride All\n\
|
||||
Require all granted\n\
|
||||
</Directory>' >> /etc/apache2/apache2.conf
|
||||
|
||||
RUN mkdir -p /var/www/html/public/images/uploads \
|
||||
/var/www/html/public/images/laporan \
|
||||
/var/www/html/public/images/warga \
|
||||
/var/www/html/public/images/bantuan \
|
||||
&& chown -R www-data:www-data /var/www/html/public \
|
||||
&& chmod -R 775 /var/www/html/public/images
|
||||
|
||||
EXPOSE 80
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
define('APP_NAME', 'SINERGI');
|
||||
define('APP_FULL_NAME', 'Sistem Informasi Geografis Penanganan Kemiskinan Berbasis Kolaborasi Rumah Ibadah, Masyarakat, dan Pemerintah Kota Pontianak');
|
||||
define('APP_VERSION', '1.0.0');
|
||||
define('APP_URL', 'http://localhost/sinergi');
|
||||
define('APP_URL', getenv('APP_URL') ?: 'http://localhost/sinergi');
|
||||
define('APP_ROOT', dirname(__DIR__));
|
||||
define('APP_UPLOAD_DIR', APP_ROOT . '/public/images/uploads/');
|
||||
define('APP_UPLOAD_URL', APP_URL . '/public/images/uploads/');
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
// config/database.php
|
||||
|
||||
define('DB_HOST', 'localhost');
|
||||
define('DB_NAME', 'sinergi_db');
|
||||
define('DB_USER', 'root');
|
||||
define('DB_PASS', '');
|
||||
define('DB_HOST', getenv('DB_HOST') ?: 'localhost');
|
||||
define('DB_NAME', getenv('DB_NAME') ?: 'sinergi_db');
|
||||
define('DB_USER', getenv('DB_USER') ?: 'root');
|
||||
define('DB_PASS', getenv('DB_PASS') ?: '');
|
||||
define('DB_CHARSET', 'utf8mb4');
|
||||
|
||||
Reference in New Issue
Block a user