update
This commit is contained in:
		@@ -3,3 +3,9 @@
 | 
			
		||||
 | 
			
		||||
[0.1.1]
 | 
			
		||||
* Updated to base image 0.10.0
 | 
			
		||||
 | 
			
		||||
[0.2.0]
 | 
			
		||||
* Updated to base image 1.0.0
 | 
			
		||||
* nginx 1.15.0 (backport)
 | 
			
		||||
* redirect folder to folder/
 | 
			
		||||
* absolute_redirect off
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
  "tags": [
 | 
			
		||||
    "webserver"
 | 
			
		||||
  ],
 | 
			
		||||
  "version": "0.1.1",
 | 
			
		||||
  "version": "0.2.0",
 | 
			
		||||
  "healthCheckPath": "/",
 | 
			
		||||
  "httpPort": 8000,
 | 
			
		||||
  "manifestVersion": 1,
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										13
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -1,9 +1,16 @@
 | 
			
		||||
FROM cloudron/base:0.10.0
 | 
			
		||||
FROM cloudron/base:1.0.0
 | 
			
		||||
MAINTAINER Dennis Schwerdel <schwerdel@googlemail.com>
 | 
			
		||||
 | 
			
		||||
RUN mkdir -p /app/code
 | 
			
		||||
WORKDIR /app/code
 | 
			
		||||
 | 
			
		||||
RUN wget http://nginx.org/keys/nginx_signing.key && \
 | 
			
		||||
    apt-key add nginx_signing.key && \
 | 
			
		||||
    rm nginx_signing.key && \
 | 
			
		||||
    echo "deb http://nginx.org/packages/mainline/ubuntu/ $(lsb_release -cs) nginx" > /etc/apt/sources.list.d/nginx.list && \
 | 
			
		||||
    apt update && \
 | 
			
		||||
    apt install -y nginx
 | 
			
		||||
 | 
			
		||||
ADD nginx.conf /app/code/nginx.conf.default
 | 
			
		||||
ADD public /app/code/public.default
 | 
			
		||||
ADD fpm.conf /etc/php/7.0/fpm/php-fpm.conf
 | 
			
		||||
@@ -13,9 +20,11 @@ RUN mkdir /run/nginx && \
 | 
			
		||||
    rm /var/log/nginx/*.log && \
 | 
			
		||||
    ln -s /dev/stderr /var/log/nginx/error.log && \
 | 
			
		||||
    ln -s /dev/stdout /var/log/nginx/access.log && \
 | 
			
		||||
    rmdir /var/lib/nginx && ln -s /tmp /var/lib/nginx
 | 
			
		||||
    rmdir /var/cache/nginx && ln -s /tmp /var/cache/nginx
 | 
			
		||||
 | 
			
		||||
RUN chown -R cloudron:cloudron /app/code /run/nginx
 | 
			
		||||
 | 
			
		||||
WORKDIR /app/data
 | 
			
		||||
 | 
			
		||||
CMD [ "/app/code/start.sh" ]
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -20,6 +20,9 @@ http {
 | 
			
		||||
        root /app/data/public;
 | 
			
		||||
        index index.php index.html index.htm;
 | 
			
		||||
 | 
			
		||||
	try_files $uri $uri/ =404;
 | 
			
		||||
	absolute_redirect off;
 | 
			
		||||
 | 
			
		||||
	# Uncomment to add a redirect
 | 
			
		||||
        #return 302 $scheme://WWW.REDIRECT.TO.COM$request_uri;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user