Code Monkey home page Code Monkey logo

Comments (5)

ThiefMaster avatar ThiefMaster commented on June 22, 2024 1

You'll also have to adapt the nginx config here:

location ~ ^/static/assets/(core|(?:plugin|theme)-[^/]+)/(.*)$ {
alias /opt/indico/static/assets/$1/$2;
access_log off;
}
location ~ ^/(ihelp|css|images|js|(static/fonts))(/.*)$ {
proxy_pass http://indico-static:8080;
}
location /robots.txt {
alias /opt/indico/static/htdocs/robots.txt;
access_log off;
}

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.

ThiefMaster avatar ThiefMaster commented on June 22, 2024

Looks like we never updated this for 2.2 so it tries to include the old htdocs folder which doesn't exist anymore here:

unzip /tmp/indico-pip/indico-*.whl -d /srv/ 'indico/htdocs/*' && \

Try replacing indico/htdocs/* with indico/web/static/* in that line.

from indico-containers.

marcbria avatar marcbria commented on June 22, 2024

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.

ThiefMaster avatar ThiefMaster commented on June 22, 2024

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):

from indico-containers.

marcbria avatar marcbria commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.