refactor: Remove extensive unused administrative UI, styling, and JavaScript assets, and introduce a new payment API controller.
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
FROM php:8.2-fpm
|
||||
|
||||
# Cài đặt các phụ thuộc hệ thống và extension
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libpng-dev \
|
||||
libjpeg-dev \
|
||||
libfreetype6-dev \
|
||||
libzip-dev \
|
||||
libxml2-dev \
|
||||
libssh2-1-dev \
|
||||
libgmp-dev \
|
||||
libcurl4-openssl-dev \
|
||||
curl \
|
||||
git \
|
||||
unzip \
|
||||
zlib1g-dev \
|
||||
ftp \
|
||||
&& docker-php-ext-install \
|
||||
gd \
|
||||
zip \
|
||||
ftp \
|
||||
pdo_mysql \
|
||||
pcntl \
|
||||
exif \
|
||||
&& pecl install redis ssh2 \
|
||||
&& docker-php-ext-enable redis ssh2
|
||||
|
||||
# Cài đặt Composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /var/www
|
||||
|
||||
# Cài đặt Node.js và npm
|
||||
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||
apt-get install -y nodejs
|
||||
|
||||
# Cài đặt các dependencies Node
|
||||
COPY package.json package-lock.json /var/www/
|
||||
RUN npm install
|
||||
|
||||
# Copy toàn bộ ứng dụng
|
||||
COPY . /var/www
|
||||
|
||||
EXPOSE 9000
|
||||
@@ -1,61 +0,0 @@
|
||||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
root /var/www/public;
|
||||
|
||||
index index.php index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_pass app:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/public$fastcgi_script_name;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name portal_new.org;
|
||||
|
||||
root /var/www/public; # Nếu bạn muốn devro.org trỏ đến cùng project, giữ nguyên đường dẫn này
|
||||
# Nếu devro.org là project khác, thay đường dẫn tương ứng, ví dụ /var/www/devro/public
|
||||
|
||||
index index.php index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_pass app:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/public$fastcgi_script_name;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user