Skip to content

Commit

Permalink
add nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubakimoto committed Sep 23, 2023
1 parent c9813be commit 5af5f76
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/php-cakephp5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ jobs:
if: steps.check_files.outputs.files_exists == 'true'
run: composer validate --no-check-publish && composer install --prefer-dist --no-progress

- name: Set permissions
run: |
chmod -R 777 tmp \
&& chmod -R 777 logs
- name: Install zip
uses: montudor/action-zip@v1

Expand Down
31 changes: 31 additions & 0 deletions php/cakephp5/default
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
server {
listen 80;
listen [::]:80;
# server_name www.example.com;
# return 301 http://example.com$request_uri;
}

server {
listen 80;
listen [::]:80;
# server_name example.com;

root /home/site/wwwroot/webroot;
index index.php;

access_log /home/site/wwwroot/logs/access.log;
error_log /home/site/wwwroot/logs/error.log;

location / {
try_files $uri $uri/ /index.php?$args;
}

location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}

0 comments on commit 5af5f76

Please sign in to comment.