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
613fee89
Commit
613fee89
authored
9 months ago
by
Henry Fröcklin
Browse files
Options
Downloads
Patches
Plain Diff
Nginx egg configuration update.
parent
5a09b28f
No related branches found
No related tags found
1 merge request
!17
Nginx egg configuration update.
Pipeline
#139863
passed
9 months ago
Stage: puppet
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/egg.conf.epp
+32
-39
32 additions, 39 deletions
templates/egg.conf.epp
with
32 additions
and
39 deletions
templates/egg.conf.epp
+
32
−
39
View file @
613fee89
<%- |
String
[
1
]
$cert_name
,
<%- |
String
[
1
]
$cert_name
,
| -%>
| -%>
server {
server {
server_name teman.it.liu.se;
listen 80 ;
root /var/www/teman;
listen [::]:443 ssl ;
listen 443 ssl ;
ssl_certificate /etc/pki/tls/certs/letsencrypt-cert_chain-egg.it.liu.se.pem ;
ssl_certificate_key /etc/pki/tls/private/letsencrypt-egg.it.liu.se.key ;
# Load configuration files for the default server block.
server_name teman.it.liu.se ;
#include /etc/nginx/default.d/*.conf
;
root /var/www/teman
;
location / {
location / {
#expires -1;
#expires -1
;
}
}
error_page 404 /404.html;
error_page 404 /404.html
;
location = /40x.html {
location = /40x.html {
}
}
error_page 500 502 503 504 /50x.html;
error_page 500 502 503 504 /50x.html
;
location = /50x.html {
location = /50x.html {
}
}
}
}
server {
server {
listen [::]:80 ipv6only=on ;
listen 80 ;
listen 80;
server_name ntadigital.it.liu.se egg.it.liu.se;
location / {
return 301 https://ntadigital.it.liu.se;
}
}
server {
listen [::]:443 ssl ipv6only=on ;
listen [::]:443 ssl ipv6only=on ;
listen 443 ssl ;
listen 443 ssl ;
server_name ntadigital.it.liu.se;
ssl_certificate /etc/pki/tls/certs/letsencrypt-cert_chain-egg.it.liu.se.pem ;
ssl_certificate_key /etc/pki/tls/private/letsencrypt-egg.it.liu.se.key ;
ssl_certificate /etc/pki/tls/certs/letsencrypt-cert_chain-
<%=
$cert_name
%>
.pem ;
server_name ntadigital.it.liu.se ;
ssl_certificate_key /etc/pki/tls/private/letsencrypt-
<%=
$cert_name
%>
.key ;
client_max_body_size 0;
client_max_body_size 0
;
location = /favicon.ico {
location = /favicon.ico {
log_not_found off;
log_not_found off
;
access_log off;
access_log off
;
}
}
location /system/ {
location /system/ {
auth_request /auth-verify ;
auth_request /auth-verify;
root /var/www/nta-digital-portal/private/uploads ;
root /var/www/nta-digital-portal/private/uploads;
#root /var/www/ntadigital_temp/public;
}
}
location /auth-verify {
location /auth-verify {
internal;
internal
;
proxy_pass http://localhost:3000/api/auth/verify;
proxy_pass http://localhost:3000/api/auth/verify
;
proxy_pass_request_body off;
proxy_pass_request_body off
;
proxy_set_header Content-Length "";
proxy_set_header Content-Length ""
;
proxy_set_header X-Original-URI $request_uri;
proxy_set_header X-Original-URI $request_uri
;
}
}
location / {
location / {
proxy_pass http://localhost:3000;
proxy_pass http://localhost:3000
;
proxy_http_version 1.1;
proxy_http_version 1.1
;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Upgrade $http_upgrade
;
proxy_set_header Connection 'upgrade';
proxy_set_header Connection 'upgrade'
;
proxy_set_header Host $host;
proxy_set_header Host $host
;
proxy_cache_bypass $http_upgrade;
proxy_cache_bypass $http_upgrade
;
}
}
}
}
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