-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(nginx): 🔧 add config file for nginx
This file is replace everytime the app restarts on the azure service
- Loading branch information
1 parent
20be86c
commit 37c919c
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
server { | ||
#proxy_cache cache; | ||
#proxy_cache_valid 200 1s; | ||
listen 8080; | ||
listen [::]:8080; | ||
root /home/site/wwwroot/public; # Changed for Laravel | ||
index index.php index.html index.htm; | ||
server_name example.com www.example.com; | ||
port_in_redirect off; | ||
|
||
location / { | ||
index index.php index.html index.htm hostingstart.html; | ||
try_files $uri $uri/ /index.php?$args; # Changed for Laravel | ||
} | ||
|
||
# redirect server error pages to the static page /50x.html | ||
# | ||
#error_page 500 502 503 504 /50x.html; # Commented out for Laravel so that Laravel debug mode pages are shown | ||
location = /50x.html { | ||
root /html/; | ||
} | ||
|
||
# Disable .git directory | ||
location ~ /\.git { | ||
deny all; | ||
access_log off; | ||
log_not_found off; | ||
} | ||
|
||
# Add locations of phpmyadmin here. | ||
location ~ [^/]\.php(/|$) { | ||
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; | ||
fastcgi_pass 127.0.0.1:9000; | ||
include fastcgi_params; | ||
fastcgi_param HTTP_PROXY ""; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_param QUERY_STRING $query_string; | ||
fastcgi_intercept_errors on; | ||
fastcgi_connect_timeout 300; | ||
fastcgi_send_timeout 3600; | ||
fastcgi_read_timeout 3600; | ||
fastcgi_buffer_size 128k; | ||
fastcgi_buffers 4 256k; | ||
fastcgi_busy_buffers_size 256k; | ||
fastcgi_temp_file_write_size 256k; | ||
} | ||
} |