diff --git a/docker-compose.yml b/docker-compose.yml index 7e687e1..61377f3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,6 +26,7 @@ services: container_name: sistem-akademik-dev-web volumes: - ./nginx:/etc/nginx/conf.d + - ./nginx/sika.conf:/etc/nginx/conf.d/default.conf ports: - 8182:80 depends_on: diff --git a/nginx/default.conf b/nginx/default.conf deleted file mode 100644 index 8a09ac7..0000000 --- a/nginx/default.conf +++ /dev/null @@ -1,37 +0,0 @@ -server { - listen 80; - server_name siska.appstaging.my.id; - - root /var/www/public; - index index.php index.html index.htm; - - # Log - access_log /var/log/nginx/access.log; - error_log /var/log/nginx/error.log; - - # Try static file, else fallback to Laravel - location / { - try_files $uri $uri/ /index.php?$query_string; - } - - # PHP-FPM - location ~ \.php$ { - include fastcgi_params; - fastcgi_pass sistem-akademik-dev:9000; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_param PATH_INFO $fastcgi_path_info; - } - - # Deny access to .env and sensitive files - location ~ /\. { - deny all; - } - - location ~* \.(log|git|env|ini|bak|sql)$ { - deny all; - } - - # Increase upload size if needed - client_max_body_size 50M; -} diff --git a/nginx/siska.conf b/nginx/siska.conf index 8a09ac7..183ec25 100644 --- a/nginx/siska.conf +++ b/nginx/siska.conf @@ -1,6 +1,6 @@ server { listen 80; - server_name siska.appstaging.my.id; + server_name sdncinere1.sch.id; root /var/www/public; index index.php index.html index.htm;