Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
postgrest-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
postgrest-formula
Commits
e5657adf
Commit
e5657adf
authored
2 years ago
by
Dennis Ahrens
Browse files
Options
Downloads
Patches
Plain Diff
Make nginx optional
parent
b77d122d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+6
-4
6 additions, 4 deletions
README.md
postgrest/common.sls
+2
-1
2 additions, 1 deletion
postgrest/common.sls
postgrest/nginx.sls
+5
-0
5 additions, 0 deletions
postgrest/nginx.sls
with
13 additions
and
5 deletions
README.md
+
6
−
4
View file @
e5657adf
...
...
@@ -74,8 +74,10 @@ You can access your PostgREST instances at:
-
`apiv2.postgrest.local:4432`
-
`icmscache.postgrest.local:4432`
###
SSL certificates
###
nginx
Don't worry about this for the next 10 years.
Should this still be around and the certificate did expire just generate a new one with the
`new_cert.sh`
script in
`.saltstack/pillar/sslcert/`
.
Make sure to adjust the pillar data (
`postrest.sls`
in the same directory) with the newly generated data.
This formula is capable of installing and configuring nginx.
Therefore you need to have an
`nginx`
block below your instance configuration as
you can see in
`pillar.example`
.
If you omit this block the formula does not care about nginx.
This is useful, if you want to use the nginx formula.
This diff is collapsed.
Click to expand it.
postgrest/common.sls
+
2
−
1
View file @
e5657adf
postgrest_packages:
pkg.installed:
- pkgs: [nginx, postgresql-client]
- pkgs:
- postgresql-client
This diff is collapsed.
Click to expand it.
postgrest/nginx.sls
+
5
−
0
View file @
e5657adf
{% for instance_name, instance_conf in salt['pillar.get']("postgrest:instances").items() %}
{% if instance_conf.nginx is defined %}
postgrest_nginx_package:
pkg.installed:
- pkgs:
- nginx
postgrest_{{ instance_name }}_nginx_conf:
file.managed:
- name: /etc/nginx/sites-available/{{ instance_name }}.conf
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment