Code Monkey home page Code Monkey logo

Comments (5)

didiatworkz avatar didiatworkz commented on May 26, 2024

Hey @nsuva
yes - I noticed this today, too..

Do you work in my company and was in the meeting today? :D
I will check this and fix this ;)

from screenly-ose-monitoring.

nsuva avatar nsuva commented on May 26, 2024

Hahaha noooo ! 😄
Just testing everything and realized it happens.

Testing now some way to publish the monitor from inside a firewall protected network with ssh reverse tunneling of port 9000.
Working great for the monitor. Any way to make it work in port 80 so that both pages can be accessible with only one port redirect ? Basically make monitor work at port 80 ...

Anyway with edit and upload content working almost everything will work just from the monitor page. 👏 👏 👏

Used command from the raspberry command line to make page visible from outside the protected network :
ssh -g -N -R *:9000:localhost:9000 user@remote_server

from screenly-ose-monitoring.

didiatworkz avatar didiatworkz commented on May 26, 2024

Fixed https://github.com/didiatworkz/screenly-ose-monitor/releases/tag/v2.4

from screenly-ose-monitoring.

didiatworkz avatar didiatworkz commented on May 26, 2024

Hey @nsuva
I didn't see you comment...
For the next time open a new Issue, please.

You can rewrite the nginx config from screenly like this:

location /monitor {
	alias /var/www/html/monitor;
	try_files $uri $uri/ @monitor;

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_param SCRIPT_FILENAME $request_filename;
		fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
	}
}

location @monitor {
	rewrite /monitor/(.*)$ /monitor/index.php?/$1 last;
}

location ~ \.php$ {
	include snippets/fastcgi-php.conf;
	fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
}

add this code to /etc/nginx/sites-enabled/screenly.conf before the last bracket }
Now you need the address: http://localhost/monitor/index.php
It is a quick and dirty solution.. For more information you can search for: PHP Apps in a Subdirectory in Nginx

Best,
didiatworkz

from screenly-ose-monitoring.

nsuva avatar nsuva commented on May 26, 2024

Thanks Mate !
Meanwhile I thought in something similar and have been testing. Will adapt it with the code you provided.
It seems to work and be able to use only one port for the reverse tunnel connection.

Thanks

from screenly-ose-monitoring.

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.