wukezhan / docker-ui

a simple docker ui powered by air framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php-docker-ui

a web interface for docker powered by the air framework

install

  • include the conf/nginx-default.conf in your nginx.conf
server {
	listen   80;
	server_name your-server-name; # your server name
	root /your/real/docker-ui-path/web;
	index index.php index.html index.htm;

	access_log /your/real/docker-ui-path/logs/docker.ui.a.log;
	error_log /your/real/docker-ui-path/logs/docker.ui.e.log;

	location ~ ^/static/ {
		rewrite ^/static/(.*)$ /static/$1 break;
		expires 1d;
	}
	location ~ /favicon.ico {
		rewrite ^/(.*)$ /static/$1 break;
		expires 1d;
	}

	location / {
		rewrite (.*) /index.php?__=$1;
	}

	#PHP
    location ~ \.php$ {
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
		fastcgi_pass 127.0.0.1:9000;
		fastcgi_index index.php;
		fastcgi_split_path_info ^(.+\.php)(.*)$;
		include fastcgi_params;
		try_files $uri =404;
    }

}

  • make sure your pool user and group in your php-fpm.conf to be root
user = root
group = root

About

a simple docker ui powered by air framework

License:MIT License


Languages

Language:PHP 44.8%Language:CSS 35.7%Language:JavaScript 11.7%Language:Smarty 7.7%