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 ===
|
# === Serve-Phase: nginx + ImageMagick fuer Thumbnails ===
|
||||||
FROM nginx:alpine
|
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
|
RUN apk add --no-cache imagemagick
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|||||||
@@ -158,6 +158,7 @@
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/images/fulls/',
|
url: '/images/fulls/',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
cache: false,
|
||||||
success: function(files) {
|
success: function(files) {
|
||||||
var images = files.filter(function(f) {
|
var images = files.filter(function(f) {
|
||||||
if (f.type !== 'file') return false;
|
if (f.type !== 'file') return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user