-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx recerse proxy configuration #2541
Comments
Well, first of all hello. You should use Python3 instead of Python2 for that system service. I can share with you my system service and if needed than configuration for Apache2. I don't use nginx. Also you could try to proxy to 127.0.0.1:43110/raw/bitcoinaddress instead of trying to proxy to the frame. |
I'm more than sure that if you set https://github.com/YunoHost-Apps/zeronet_ynh/blob/master/conf/nginx.conf.template to proxy requests for 127.0.0.1:43110/RAW/bitcoinaddress will work. Your config should first UNSET headers on the back-end which shipped with ZeroNet (see UiRequest.py) and than SET new headers on the front-end. |
Here is an example configuration for Nginx that works with the latest, Python3 version of ZeroNet: https://zeronet.io/docs/faq/#how-to-configure-nginx-reverse-proxy-for-zeronet |
ZeroNet for YunoHost package is unmaintained and broken. I'm currently working on updating it so it will work with newer ZeroNet versions. |
@HelloZeroNet The nginx config has nothing to do with the version of python! I told him to use version 3 of python because @anmol26s's system service was clearly used python2 to start ZeroNet. In the other hand the headers should be unset on the back-end servers (where zeronet is running) before adding new headers on the front-end. Proxypass should point to 127.0.0.1:43110/RAW/bitcoinaddress and not the framed version! (Frames can't be read by search engines, or at minimum they will penalize the website owner...) Thanks @filips123 |
@nomagics It did not worked. |
Are you trying to do this with YunoHost? Unfortunately, this won't work because YunoHost uses cookies for SSO and that cookies won't be included in ZeroNet's iframe so scripts won't load. See YunoHost/issues#1580 for more details. I'm trying to update ZeroNet package and add more configuration options to it (like support for Multiuser plugin, public instances...), but this error is preventing from finishing it. As possible workaround about this, you can try installing Multiuser plugin and then enabling public access to ZeroNet which probably means SSO cookies won't be needed. |
@Fil Yes I am trying it on YunoHost. Is Zeronet working after enabling multiuser plugin? What is the protecting way to a ZeroNet instance when its in public space? |
If it is working or not is not related to Multiuser/UiPassword plugin but if YunoHost restricts access behind SSO login. I meant that you could try enabling public/unrestricted access to ZeroNet (with |
I am trying to fix app for Yunohost. For now I will keep the app away from SSO and provide the UI password for the protection of the Zeronet admin interface.
I have no idea why this error comes when the user is already created and working. Zeronet work well when I run from command line. That is obvious that is a problem between Zeronet running with a system created user. |
Step 1: Please describe your environment
Step 2: Describe the problem: I want to retrieve a Zeronet Yunohost package https://github.com/YunoHost-Apps/zeronet_ynh . Earlier it use to work, but in latest updates it gives blank page.
Steps to reproduce:
Observed Results:
It shows me blank page. The Zeronet is broken for now. It would be good if Nginx configuration file could be shared by someone. Systemd works smoothly and remains avtive.
The text was updated successfully, but these errors were encountered: