Giter VIP home page Giter VIP logo

Comments (9)

homerr avatar homerr commented on August 17, 2024

Could you pastebin your reverse proxy settings? Also, check here to make sure Grocy is configured appropriately for reverse proxy (otherwise it'll try and serve content over http and https and this leads to what you're describing)

Set BASE_URL in /config/data/config.php to the right URL and see if it works?

from docker-grocy.

Phrenzy avatar Phrenzy commented on August 17, 2024

https://pastebin.com/Mzdj2ZXm

grocy

docker run -d --restart unless-stopped -e PGID=1000 -e PUID=1000 -e TZ=TZ="America/Los_Angeles" --name=grocy -v /opt/grocy/config:/config -p 9283:80 linuxserver/grocy

from docker-grocy.

Phrenzy avatar Phrenzy commented on August 17, 2024

https://pastebin.com/WWzh3D3F

from docker-grocy.

tobbenb avatar tobbenb commented on August 17, 2024

Probably not connected, but you got your TZ variable wrong. Remove one of the TZ=.

from docker-grocy.

Phrenzy avatar Phrenzy commented on August 17, 2024

Remove one of the TZ=.
Sorry about that. That was a boo-boo in my notes I didn't fix. The container wont start like that.

from docker-grocy.

tony4212 avatar tony4212 commented on August 17, 2024

This is still a problem when trying to use Apache to reverse proxy. The result is the website showing up in white with text. Under inspect elements in Google it shows mixed content warnings. When allowing Google to ignore mixed content issues by having the site to non https everything looks normal. However, when trying to login as admin admin the website just says at the login screen.

from docker-grocy.

j0nnymoe avatar j0nnymoe commented on August 17, 2024

No one within the team uses Apache to reverse proxy so we aren't able to help with that. We have a template for our letsencrypt container waiting to be PR'ed.

from docker-grocy.

tony4212 avatar tony4212 commented on August 17, 2024

I figured it out for the most part so far here is what worked for me

ServerName example.site.com

SSLCertificateFile /etc/letsencrypt/live/example.site.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.site.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf

Header always set Content-Security-Policy "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
Header always set X-Xss-Protection "1; mode=block"
Header always set X-Content-Type-Options "nosniff"
SSLProtocol -All +TLSv1.2
SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-$
SSLHonorCipherOrder on
SSLCompression off
SSLSessionTickets off

RequestHeader set X-Forwarded-Proto "https"

ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://localhost:9283/
ProxyPassReverse / http://localhost:9283/

RewriteEngine on
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://localhost:9283/$1 [P,L]

from docker-grocy.

CHBMB avatar CHBMB commented on August 17, 2024

Looks like @Phrenzy has sorted this out, closing.

from docker-grocy.

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.