Comments (9)
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.
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.
from docker-grocy.
Probably not connected, but you got your TZ variable wrong. Remove one of the TZ=.
from docker-grocy.
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.
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.
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.
I figured it out for the most part so far here is what worked for me
ServerName example.site.comSSLCertificateFile /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.
Looks like @Phrenzy has sorted this out, closing.
from docker-grocy.
Related Issues (20)
- Add time zone format to readme HOT 2
- Unable to Upload Images of Reasonable File Size HOT 8
- Migrations scripts logs errors but migration is successfully HOT 3
- Login page no longer works (most likely after the latest upgrade) HOT 8
- [BUG] config.php not found HOT 4
- [FEAT] Setting Grocy settings via enviroment HOT 3
- [BUG] Terrible performance on the latest version HOT 33
- SQLSTATE[HY000]: General error: 1 no such table: users HOT 5
- 4.0.0 not working HOT 3
- Grocy docker started but shows ERR_TOO_MANY_REDIRECTS HOT 18
- [BUG] Update to 4.0.1 completely breaks website, links lead to different pages HOT 5
- [BUG] Update from latest 3 to latest 4 breaks sql statements HOT 5
- [BUG] Chore Userfield breaks editing/adding Chores HOT 3
- [BUG] FPM initialization failed, fastcgi address in use HOT 7
- [BUG] No data shown in UI after docker pull new images HOT 6
- [BUG] Fresh install - Unable to run Grocy: config.php in data directory (/app/www/public/../data) not found. HOT 7
- [BUG] Container does not start up with "Grocy\Middleware\ReverseProxyAuthMiddleware" HOT 2
- [BUG] Empty stock overview - broken index HOT 6
- [BUG] Cookie settings don't take effect HOT 2
- [BUG] "Compatibility Issues" when using linuxserver.io v4.2.0 image with Android app HOT 6
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 docker-grocy.