public inbox for [email protected]
help / color / mirror / Atom feedPATCH: Allow pgAdmin4 application to host over LAN
2+ messages / 2 participants
[nested] [flat]
* PATCH: Allow pgAdmin4 application to host over LAN
@ 2016-04-26 11:09 Murtuza Zabuawala <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Murtuza Zabuawala @ 2016-04-26 11:09 UTC (permalink / raw)
To: pgadmin-hackers
Hi,
Given patch will allow user to host pgAdmin4 to host over LAN network by
default it hosts on localhost (using 'lo' adapter).
--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
Attachments:
[text/x-patch] Allow_to_host_over_LAN_v1.patch (1.1K, 3-Allow_to_host_over_LAN_v1.patch)
download | inline diff:
diff --git a/web/config.py b/web/config.py
index 9cf2644..fb169d0 100644
--- a/web/config.py
+++ b/web/config.py
@@ -98,6 +98,11 @@ SERVER_MODE = True
# The default should be fine here, as it's not exposed in the app.
DESKTOP_USER = '[email protected]'
+# This configuration allows user to host application on LAN
+# Default hosting is on lo (DEFAULT_SERVER='localhost'),
+# To host pgAdmin4 over LAN set DEFAULT_SERVER='0.0.0.0'
+DEFAULT_SERVER = 'localhost'
+
# The default port on which the app server will listen if not set in the
# environment by the runtime
DEFAULT_SERVER_PORT = 5050
diff --git a/web/pgAdmin4.py b/web/pgAdmin4.py
index 977d4e8..dea50ef 100644
--- a/web/pgAdmin4.py
+++ b/web/pgAdmin4.py
@@ -74,6 +74,8 @@ else:
server_port = config.DEFAULT_SERVER_PORT
try:
- app.run(port=server_port, use_reloader=(config.SERVER_MODE and app.debug))
+ app.run(host=config.DEFAULT_SERVER,
+ port=server_port,
+ use_reloader=(config.SERVER_MODE and app.debug))
except IOError:
app.logger.error("Error starting the app server: %s", sys.exc_info())
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PATCH: Allow pgAdmin4 application to host over LAN
@ 2016-05-06 14:26 Dave Page <[email protected]>
parent: Murtuza Zabuawala <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Dave Page @ 2016-05-06 14:26 UTC (permalink / raw)
To: Murtuza Zabuawala <[email protected]>; +Cc: pgadmin-hackers
Thanks, patch committed.
On Tue, Apr 26, 2016 at 12:09 PM, Murtuza Zabuawala
<[email protected]> wrote:
> Hi,
>
> Given patch will allow user to host pgAdmin4 to host over LAN network by
> default it hosts on localhost (using 'lo' adapter).
>
>
> --
> Regards,
> Murtuza Zabuawala
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-05-06 14:26 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-26 11:09 PATCH: Allow pgAdmin4 application to host over LAN Murtuza Zabuawala <[email protected]>
2016-05-06 14:26 ` Dave Page <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox