Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fordecyt_2019
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodrigo Tapia-McClung
fordecyt_2019
Commits
1085dfec
Commit
1085dfec
authored
Sep 04, 2019
by
Rodrigo Tapia-McClung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update README
parent
b7ff4498
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
README.md
README.md
+30
-2
No files found.
README.md
View file @
1085dfec
...
@@ -11,6 +11,34 @@ Built on [Node Express](https://expressjs.com/)
...
@@ -11,6 +11,34 @@ Built on [Node Express](https://expressjs.com/)
*
access to a
[
PostGIS
](
https://postgis.net
)
server
*
access to a
[
PostGIS
](
https://postgis.net
)
server
*
[
Node and npm
](
https://nodejs.org/en/download/
)
*
[
Node and npm
](
https://nodejs.org/en/download/
)
## PostgreSQL user
User should
**only**
have SELECT right on tables. You can create one as follows:
```
sql
-- Create a group
CREATE
ROLE
readaccess
;
-- Grant access to existing tables
GRANT
USAGE
ON
SCHEMA
public
TO
readaccess
;
GRANT
SELECT
ON
ALL
TABLES
IN
SCHEMA
public
TO
readaccess
;
-- Grant access to future tables
ALTER
DEFAULT
PRIVILEGES
IN
SCHEMA
public
GRANT
SELECT
ON
TABLES
TO
readaccess
;
-- Create a final user with password
CREATE
USER
<
user
>
WITH
PASSWORD
'<pw>'
;
GRANT
readaccess
TO
<
user
>
;
GRANT
SELECT
ON
ALL
TABLES
IN
SCHEMA
public
TO
<
user
>
;
```
Make sure to edit /etc/postgresql/10/main/pg_hba.conf line
`local all all peer`
to
`local all all md5`
## Installation
## Installation
If you don't have git, you can donwload
[
a zip file
](
https://github.com/anneb/pgserver/archive/master.zip
)
of the project instead.
If you don't have git, you can donwload
[
a zip file
](
https://github.com/anneb/pgserver/archive/master.zip
)
of the project instead.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment