mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-10-30 17:37:59 +00:00
enable DEVELOPER mode by default
This commit is contained in:
@@ -7,48 +7,50 @@ server {
|
|||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
root /usr/local/www/clonos/public;
|
root /usr/local/www/clonos/public;
|
||||||
set $php_root $document_root;
|
set $php_root $document_root;
|
||||||
client_max_body_size 0;
|
|
||||||
|
|
||||||
index index.php;
|
client_max_body_size 0; # upload ISO/VM
|
||||||
|
|
||||||
access_log /var/log/nginx/cbsdweb.acc combined;
|
index index.php;
|
||||||
error_log /var/log/nginx/cbsdweb.err;
|
|
||||||
|
access_log /var/log/nginx/cbsdweb.acc combined;
|
||||||
|
error_log /var/log/nginx/cbsdweb.err;
|
||||||
|
|
||||||
location ~* \.(jpg|jpeg|gif|png|swf|tiff|swf|flv|zip|rar|bz2|iso|xz|img|css|txt|html|js|xsl|eot|svg|ttf|woff|woff2)$ {
|
location ~* \.(jpg|jpeg|gif|png|swf|tiff|swf|flv|zip|rar|bz2|iso|xz|img|css|txt|html|js|xsl|eot|svg|ttf|woff|woff2)$ {
|
||||||
index index.php;
|
index index.php;
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /shell/ {
|
location /shell/ {
|
||||||
proxy_pass http://ttyd_back/;
|
proxy_pass http://ttyd_back/;
|
||||||
proxy_read_timeout 90s;
|
proxy_read_timeout 90s;
|
||||||
proxy_connect_timeout 90s;
|
proxy_connect_timeout 90s;
|
||||||
proxy_send_timeout 90s;
|
proxy_send_timeout 90s;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
root /usr/local/www/clonos/public;
|
root /usr/local/www/clonos/public;
|
||||||
include /usr/local/etc/nginx/fastcgi_params;
|
include /usr/local/etc/nginx/fastcgi_params;
|
||||||
|
|
||||||
allow all;
|
allow all;
|
||||||
fastcgi_keep_conn on;
|
fastcgi_keep_conn on;
|
||||||
fastcgi_param SCRIPT_FILENAME $php_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $php_root$fastcgi_script_name;
|
||||||
fastcgi_pass unix:/tmp/php-fpm.sock;
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
fastcgi_param WORKDIR /usr/jails;
|
fastcgi_param WORKDIR /usr/jails;
|
||||||
# fastcgi_param APPLICATION_ENV development;
|
|
||||||
fastcgi_read_timeout 1200; # keep in sync with PHP max_execution_time = 1200
|
fastcgi_param APPLICATION_ENV development; # comment to disable DEVELOPER mode:
|
||||||
|
fastcgi_read_timeout 1200; # keep in sync with PHP max_execution_time = 1200
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
index index.php;
|
index index.php;
|
||||||
try_files $uri/index.html /index.php$is_args$args;
|
try_files $uri/index.html /index.php$is_args$args;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
user www;
|
user www;
|
||||||
|
|
||||||
load_module /usr/local/libexec/nginx/ngx_stream_module.so;
|
load_module /usr/local/libexec/nginx/ngx_stream_module.so;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
use kqueue;
|
use kqueue;
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
include /usr/local/etc/nginx/mime.types;
|
include /usr/local/etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
client_max_body_size 1m;
|
client_max_body_size 1m;
|
||||||
include /usr/local/etc/nginx/sites-enabled/*.conf;
|
include /usr/local/etc/nginx/sites-enabled/*.conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream {
|
stream {
|
||||||
include /usr/local/etc/nginx/conf.stream.d/*.conf;
|
include /usr/local/etc/nginx/conf.stream.d/*.conf;
|
||||||
include /usr/local/etc/nginx/streams-enabled/*;
|
include /usr/local/etc/nginx/streams-enabled/*;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user