Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
egg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
liu-puppet-modules
egg
Commits
9cf1e721
Commit
9cf1e721
authored
1 year ago
by
Nils Olof Paulsson
Browse files
Options
Downloads
Plain Diff
Merge branch 'devel' into 'test'
Devel See merge request
!3
parents
7d623d53
4d5f51ee
No related branches found
No related tags found
2 merge requests
!4
Test
,
!3
Devel
Pipeline
#119478
passed
1 year ago
Stage: puppet
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/egg.conf
+54
-0
54 additions, 0 deletions
files/egg.conf
manifests/nginx.pp
+7
-2
7 additions, 2 deletions
manifests/nginx.pp
with
61 additions
and
2 deletions
files/egg.conf
0 → 100644
+
54
−
0
View file @
9cf1e721
server
{
server_name
teman
.
it
.
liu
.
se
;
root
/
var
/
www
/
teman
;
# Load configuration files for the default server block.
#include /etc/nginx/default.d/*.conf;
location
/ {
#expires -1;
}
error_page
404
/
404
.
html
;
location
= /
40
x
.
html
{
}
error_page
500
502
503
504
/
50
x
.
html
;
location
= /
50
x
.
html
{
}
}
server
{
listen
80
;
server_name
egg
.
it
.
liu
.
se
;
client_max_body_size
0
;
location
= /
favicon
.
ico
{
log_not_found
off
;
access_log
off
;
}
location
/
system
/ {
auth_request
/
auth
-
verify
;
root
/
var
/
www
/
nta
-
digital
-
portal
/
private
/
uploads
;
#root /var/www/ntadigital_temp/public;
}
location
/
auth
-
verify
{
internal
;
proxy_pass
http
://
localhost
:
3000
/
api
/
auth
/
verify
;
proxy_pass_request_body
off
;
proxy_set_header
Content
-
Length
""
;
proxy_set_header
X
-
Original
-
URI
$
request_uri
;
}
location
/ {
proxy_pass
http
://
localhost
:
3000
;
proxy_http_version
1
.
1
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
'upgrade'
;
proxy_set_header
Host
$
host
;
proxy_cache_bypass
$
http_upgrade
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
manifests/nginx.pp
+
7
−
2
View file @
9cf1e721
...
@@ -11,9 +11,9 @@ class egg::nginx () {
...
@@ -11,9 +11,9 @@ class egg::nginx () {
# source => "puppet:///modules/${module_name}/nginx.conf",
# source => "puppet:///modules/${module_name}/nginx.conf",
# notify => Service['nginx'],
# notify => Service['nginx'],
# }
# }
file
{
'/etc/nginx/conf.d/egg
sample
.conf'
:
file
{
'/etc/nginx/conf.d/egg.conf'
:
ensure
=>
'present'
,
ensure
=>
'present'
,
source
=>
"puppet:///modules/
${module_name}
/egg
sample
.conf"
,
source
=>
"puppet:///modules/
${module_name}
/egg.conf"
,
notify
=>
Service
[
'nginx'
],
notify
=>
Service
[
'nginx'
],
require
=>
Package
[
'nginx'
],
require
=>
Package
[
'nginx'
],
}
}
...
@@ -28,4 +28,9 @@ class egg::nginx () {
...
@@ -28,4 +28,9 @@ class egg::nginx () {
zone
=>
'liu'
,
zone
=>
'liu'
,
service
=>
'http'
,
service
=>
'http'
,
}
}
firewalld_service
{
'Allow http in the public Zone'
:
ensure
=>
present
,
zone
=>
'public'
,
service
=>
'http'
,
}
}
}
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