-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
44 lines (33 loc) · 979 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
user nobody;
worker_processes 1;
error_log /var/log/nginx/error.log;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log off;
error_log /var/log/nginx/error.log;
# Changing the path of temporary files, as the permissions adjustments were not working for /var/lib/nginx/tmp/client_body
# https://github.com/CampbellSoftwareSolutions/docker-osticket/issues/34#issuecomment-369942148
client_body_temp_path /tmp 1 2;
server {
listen 8080;
server_name localhost;
client_max_body_size 2M;
access_log off;
error_log /var/log/nginx/error.log;
root /app/src;
index validator.php;
location / {
try_files $uri $uri/ /validator.php?$args;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index validator.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}