-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2253 from kingofkya/master
Add a templet for freescout helpdesk software
- Loading branch information
Showing
2 changed files
with
92 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 { | ||
listen %ip%:%web_ssl_port%; | ||
server_name %domain_idn% %alias_idn%; | ||
root %docroot%; | ||
index index.php index.html index.htm; | ||
access_log /var/log/nginx/domains/%domain%.log combined; | ||
access_log /var/log/nginx/domains/%domain%.bytes bytes; | ||
error_log /var/log/nginx/domains/%domain%.error.log error; | ||
|
||
ssl on; | ||
ssl_certificate %ssl_pem%; | ||
ssl_certificate_key %ssl_key%; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
location ~ \.php$ { | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_pass %backend_lsnr%; | ||
fastcgi_index index.php; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
include /etc/nginx/fastcgi_params; | ||
} | ||
# Uncomment this location if you want to improve attachments downloading speed. | ||
# Also make sure to set APP_DOWNLOAD_ATTACHMENTS_VIA=nginx in the .env file. | ||
#location ^~ /storage/app/attachment/ { | ||
# internal; | ||
# alias /var/www/html/storage/app/attachment/; | ||
#} | ||
location ~* ^/storage/attachment/ { | ||
expires 1M; | ||
access_log off; | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
location ~* ^/(?:css|js)/.*\.(?:css|js)$ { | ||
expires 2d; | ||
access_log off; | ||
add_header Cache-Control "public, must-revalidate"; | ||
} | ||
location ~* ^/(?:css|fonts|img|installer|js|modules|[^\\\]+\..*)$ { | ||
expires 1M; | ||
access_log off; | ||
add_header Cache-Control "public"; | ||
} | ||
location ~ /\. { | ||
deny all; | ||
} | ||
} |
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,44 @@ | ||
server { | ||
listen %ip%:%web_port%; | ||
server_name %domain_idn% %alias_idn%; | ||
root %docroot%; | ||
index index.php index.html index.htm; | ||
access_log /var/log/nginx/domains/%domain%.log combined; | ||
access_log /var/log/nginx/domains/%domain%.bytes bytes; | ||
error_log /var/log/nginx/domains/%domain%.error.log error; | ||
location / { | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
location ~ \.php$ { | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_pass %backend_lsnr%; | ||
fastcgi_index index.php; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
include /etc/nginx/fastcgi_params; | ||
} | ||
# Uncomment this location if you want to improve attachments downloading speed. | ||
# Also make sure to set APP_DOWNLOAD_ATTACHMENTS_VIA=nginx in the .env file. | ||
#location ^~ /storage/app/attachment/ { | ||
# internal; | ||
# alias /var/www/html/storage/app/attachment/; | ||
#} | ||
location ~* ^/storage/attachment/ { | ||
expires 1M; | ||
access_log off; | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
location ~* ^/(?:css|js)/.*\.(?:css|js)$ { | ||
expires 2d; | ||
access_log off; | ||
add_header Cache-Control "public, must-revalidate"; | ||
} | ||
location ~* ^/(?:css|fonts|img|installer|js|modules|[^\\\]+\..*)$ { | ||
expires 1M; | ||
access_log off; | ||
add_header Cache-Control "public"; | ||
} | ||
location ~ /\. { | ||
deny all; | ||
} | ||
} |