Fix Nginx file permissions and bypass browser cache
This commit is contained in:
@@ -15,6 +15,9 @@ RUN bundle exec jekyll build
|
||||
# === Serve-Phase: nginx + ImageMagick fuer Thumbnails ===
|
||||
FROM nginx:alpine
|
||||
|
||||
# Nginx als Root laufen lassen, um Berechtigungsprobleme mit Nextcloud-Dateien zu vermeiden
|
||||
RUN sed -i 's/user nginx;/user root;/g' /etc/nginx/nginx.conf
|
||||
|
||||
RUN apk add --no-cache imagemagick
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
@@ -158,6 +158,7 @@
|
||||
$.ajax({
|
||||
url: '/images/fulls/',
|
||||
dataType: 'json',
|
||||
cache: false,
|
||||
success: function(files) {
|
||||
var images = files.filter(function(f) {
|
||||
if (f.type !== 'file') return false;
|
||||
|
||||
Reference in New Issue
Block a user