Open dewijones92 opened 1 year ago
Hi, thanks for the nice feedback. I'll have a look at your config as soon as I find some time.
@martialblog many thanks. Let me know if I can help in any way
Agreed. This is perfect for my use case, but I have a similar issue with the nginx reverse proxy approach. I'd like to have http://
Bare config files are as follows:
version: '3.8'
services:
limesurvey:
image: docker-limesurvey-limesurvey:latest
volumes:
# Hint: This is just an example, change /tmp to something persistent
- /tmp/upload/surveys:/var/www/html/upload/surveys
links:
- lime-db
depends_on:
- lime-db
ports:
- "48080:8080"
container_name: limesurvey
hostname: limesurvey
environment:
- BASE_URL=/limesurvey
- PUBLIC_URL=http://localhost:9000
- URL_FORMAT=path
- "DB_HOST=lime-db"
- "DB_PASSWORD=secret"
- "ADMIN_PASSWORD=foobar"
# If you require an empty table prefix, use a space as the DB_TABLE_PREFIX
# - "DB_TABLE_PREFIX= "
lime-db:
image: docker.io/mysql:5.7
environment:
- "MYSQL_USER=limesurvey"
- "MYSQL_DATABASE=limesurvey"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
frontend:
environment:
- TZ=America/New_York
build:
dockerfile: frontend.Dockerfile
image: frontend
container_name: frontend
hostname: frontend
ports:
- 9000:80
depends_on:
- limesurvey
FROM nginx
ENV VERSIONNUMBER=v0.5
RUN mkdir /app
COPY index.html /app
COPY nginx.conf /etc/nginx/nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main "$remote_addr - $remote_user [$time_local] '$request' $status $body_bytes_sent '$http_referer' '$http_user_agent' '$http_x_forwarded_for'";
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
server {
location / {
root /app;
index index.html;
try_files $uri $uri/ /index.html;
}
location /limesurvey {
proxy_pass http://limesurvey:8080;
add_header 'Access-Control-Allow-Origin' "*" always;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
<html><body style="background-color: purple"></body></html>
First, I need to say THANKS SO MUCH for this great repo. Just a small issue that is probably my own fault.
I am trying to put limeserver behind a nginx reverse proxy But I am getting a 500.
Can anyone PLEASE suggest corrections to my config? Thanks 😊
2023/04/22 08:09:23 [error] 12#12: *67 rewrite or internal redirection cycle while internally redirecting to "index.php", client: 127.0.0.1, server: dewijones92vultr.duckdns.org, request: "GET /111/survey/ HTTP/1.1", host: "dewijones92vultr.duckdns.org" 127.0.0.1 - - [22/Apr/2023:08:09:23 +0000] "GET /111/survey/ HTTP/1.1" 500 170 "-" "curl/7.74.0" "-"