Comments (5)
You'll also have to adapt the nginx config here:
indico-containers/nginx/indico.conf.template
Lines 13 to 25 in df0e50e
based on the 2.2-style paths here: https://docs.getindico.io/en/stable/installation/production/debian/nginx/
A PR updating this to work with 2.2 would be greatly appreciated! :)
from indico-containers.
Looks like we never updated this for 2.2 so it tries to include the old htdocs
folder which doesn't exist anymore here:
Try replacing indico/htdocs/*
with indico/web/static/*
in that line.
from indico-containers.
Woooww... 2 minutes.
Probably that was the fastest answer I ever get in my 20 years working with free software.
I will make a capture to show when I need to finish those silly discussions. ;-)
Thanks. Fixing Dockerfile paths worked and now I can rise the container... but I'm still unable to reach the site... probably because nginx configuration. I'm not a nginx guy (still stuck in apache) but took a look to the link you sent and they look fine to me. If you give further indications I love to fix and make the PR.
BTW, just in case it could be related: The only port I have open in my server for this service is 8084. So I replaced 8080 port in docker-compose and in .env file (but not anywhere else). Is it fine?
Thanks for your time,
m.
from indico-containers.
Basically the regexes matching the various types of assets and paths the aliases point to changed between 2.1 and 2.2. You can see what changed here (in the /etc/nginx/conf.d/indico.conf
block):
- v2.1.9: https://docs.getindico.io/en/v2.1.9/installation/production/debian/nginx/#configure-uwsgi-nginx
- v2.2: https://docs.getindico.io/en/stable/installation/production/debian/nginx/#configure-uwsgi-nginx
from indico-containers.
A diff between both versions show the flowing changes:
10a11
> chown-socket = indico:nginx
72,73c73,74
Something new to add in "/etc/uwsgi/apps-available/indico.ini" isn't it?
< location ~ ^/static/assets/(core|(?:plugin|theme)-[^/]+)/(.*)$ {
< alias /opt/indico/assets/$1/$2;
To be removed in " /etc/nginx/conf.d/indico.conf", yes?
> location ~ ^/(images|fonts)(.*)/(.+?)(__v[0-9a-f]+)?\.([^.]+)$ {
> alias /opt/indico/web/static/$1$2/$3.$5;
77,78c78,79
< location ~ ^/(css|images|js|static(?!/plugins|/assets|/themes|/custom))(/.*)$ {
< alias /opt/indico/web/htdocs/$1$2;
I can find a match for this rule in the master branch:
https://github.com/indico/indico-containers/blob/master/nginx/indico.conf.template
What do you want me to do?
> location ~ ^/(css|dist|images|fonts)/(.*)$ {
> alias /opt/indico/web/static/$1/$2;
83c84
< alias /opt/indico/web/htdocs/robots.txt;
> alias /opt/indico/web/static/robots.txt;
88c89
The closest one is this "alias /opt/indico/static/htdocs/robots.txt".
Unsure if I really need to touch this.
Sorry to ask to be so specific, but as I don't know know nginx works... I'm kind of blind here.
from indico-containers.
Related Issues (20)
- Add CI to test docker image building HOT 1
- Hard coded indigo with a "g" HOT 2
- No permissions to create extension "unaccent" HOT 5
- Could not load some plugins HOT 3
- Option to deploy in docker swarm HOT 1
- LaTeX can't find the format file `xelatex.fmt'
- Update docker image/upload Dockerfile? HOT 1
- Help with email encryption HOT 1
- Could not load plug-in HOT 2
- please create 'stable' branch HOT 2
- Python error when installing HOT 3
- Run db migration step before starting worker? HOT 3
- no amd64 image for indico 3.1 ? HOT 2
- Help wanted: clarify deployment for production HOT 2
- Docker container not updated consistently with new Indico new releases HOT 8
- Need python-ldap package pre-installed in indico image HOT 4
- HTTPS support to stack HOT 4
- Make EOS storage optional
- standing up docker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from indico-containers.