mirror of
				https://github.com/hoellen/docker-nextcloud.git
				synced 2025-11-04 00:07:15 +00:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			d3c19a637b
			...
			6bd466c247
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					6bd466c247 | ||
| bf3c76a5f8 | |||
| 
						 | 
					35725bd4eb | 
							
								
								
									
										12
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -3,7 +3,9 @@ name: build
 | 
				
			|||||||
on:
 | 
					on:
 | 
				
			||||||
  workflow_dispatch:
 | 
					  workflow_dispatch:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    branches: [ master ]
 | 
					    branches: 
 | 
				
			||||||
 | 
					     - master
 | 
				
			||||||
 | 
					     - version-* 
 | 
				
			||||||
  schedule:
 | 
					  schedule:
 | 
				
			||||||
    # Build the image regularly (each Friday)
 | 
					    # Build the image regularly (each Friday)
 | 
				
			||||||
    - cron: '23 04 * * 5'
 | 
					    - cron: '23 04 * * 5'
 | 
				
			||||||
@@ -27,6 +29,12 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - name: Extract version for tags
 | 
					      - name: Extract version for tags
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
 | 
					          if [[ "$GITHUB_REF" == refs/heads/* ]]; then
 | 
				
			||||||
 | 
					            BRANCH="${GITHUB_REF#refs/heads/}"
 | 
				
			||||||
 | 
					            if [ "$BRANCH" = "master" ]; then
 | 
				
			||||||
 | 
					              echo "BRANCH_VERSION=latest" >> $GITHUB_ENV
 | 
				
			||||||
 | 
					            fi
 | 
				
			||||||
 | 
					          fi
 | 
				
			||||||
          echo "FULL_VERSION=$(grep -oP '(?<=NEXTCLOUD_VERSION=).*' Dockerfile | head -c6)" >> $GITHUB_ENV
 | 
					          echo "FULL_VERSION=$(grep -oP '(?<=NEXTCLOUD_VERSION=).*' Dockerfile | head -c6)" >> $GITHUB_ENV
 | 
				
			||||||
          echo "MAJOR_VERSION=$(grep -oP '(?<=NEXTCLOUD_VERSION=).*' Dockerfile | head -c2)" >> $GITHUB_ENV
 | 
					          echo "MAJOR_VERSION=$(grep -oP '(?<=NEXTCLOUD_VERSION=).*' Dockerfile | head -c2)" >> $GITHUB_ENV
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -53,7 +61,7 @@ jobs:
 | 
				
			|||||||
        with:
 | 
					        with:
 | 
				
			||||||
          images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
 | 
					          images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
 | 
				
			||||||
          tags: |
 | 
					          tags: |
 | 
				
			||||||
            latest
 | 
					            ${{ env.BRANCH_VERSION }}
 | 
				
			||||||
            ${{ env.FULL_VERSION }}
 | 
					            ${{ env.FULL_VERSION }}
 | 
				
			||||||
            ${{ env.MAJOR_VERSION }}
 | 
					            ${{ env.MAJOR_VERSION }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,7 +18,6 @@ server {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        add_header Referrer-Policy "no-referrer" always;
 | 
					        add_header Referrer-Policy "no-referrer" always;
 | 
				
			||||||
        add_header X-Content-Type-Options "nosniff" always;
 | 
					        add_header X-Content-Type-Options "nosniff" always;
 | 
				
			||||||
        add_header X-Download-Options "noopen" always;
 | 
					 | 
				
			||||||
        add_header X-Frame-Options "SAMEORIGIN" always;
 | 
					        add_header X-Frame-Options "SAMEORIGIN" always;
 | 
				
			||||||
        add_header X-Permitted-Cross-Domain-Policies "none" always;
 | 
					        add_header X-Permitted-Cross-Domain-Policies "none" always;
 | 
				
			||||||
        add_header X-Robots-Tag "noindex, nofollow" always;
 | 
					        add_header X-Robots-Tag "noindex, nofollow" always;
 | 
				
			||||||
@@ -67,7 +66,7 @@ server {
 | 
				
			|||||||
            index index.php;
 | 
					            index index.php;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        location ~ \.(?:css|js|svg|gif|map)$ {
 | 
					        location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$ {
 | 
				
			||||||
            try_files $uri /index.php$uri$is_args$args;
 | 
					            try_files $uri /index.php$uri$is_args$args;
 | 
				
			||||||
            expires 6M;
 | 
					            expires 6M;
 | 
				
			||||||
            access_log off;
 | 
					            access_log off;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,6 +9,11 @@ events {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
http {
 | 
					http {
 | 
				
			||||||
    include /etc/nginx/mime.types;
 | 
					    include /etc/nginx/mime.types;
 | 
				
			||||||
 | 
					    # Add .mjs as a file extension for javascript
 | 
				
			||||||
 | 
					    # https://github.com/nextcloud/server/pull/36057
 | 
				
			||||||
 | 
					    types {
 | 
				
			||||||
 | 
					        application/javascript mjs;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    default_type  application/octet-stream;
 | 
					    default_type  application/octet-stream;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    access_log /nginx/logs/access.log combined;
 | 
					    access_log /nginx/logs/access.log combined;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user