Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stechuhr-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pandemic_Response
stechuhr-server
Commits
c10679a3
Commit
c10679a3
authored
4 years ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Add example nginx config
parent
4a275cad
Branches
master
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
stechuhr.server.nginx.config
+37
-0
37 additions, 0 deletions
stechuhr.server.nginx.config
with
37 additions
and
0 deletions
stechuhr.server.nginx.config
0 → 100644
+
37
−
0
View file @
c10679a3
server
{
server_name
stechuhr
.
server
;
add_header
Cache
-
Control
no
-
cache
;
add_header
Strict
-
Transport
-
Security
"max-age=31536000; includeSubdomains; preload;"
;
add_header
x
-
frame
-
options
SAMEORIGIN
;
add_header
X
-
Content
-
Type
-
Options
nosniff
;
add_header
X
-
XSS
-
Protection
"1; mode=block"
;
listen
80
;
listen
[::]:
80
;
client_max_body_size
10
M
;
client_body_buffer_size
128
k
;
access_log
/
var
/
log
/
nginx
/
stechuhr
.
server
-
access
.
log
;
error_log
/
var
/
log
/
nginx
/
stechuhr
.
server
-
error
.
log
;
location
/ {
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Forwarded
-
Host
$
host
;
proxy_set_header
X
-
Forwarded
-
Server
$
host
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_http_version
1
.
1
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
"upgrade"
;
proxy_redirect
http
://
127
.
0
.
0
.
1
:
5000
/ /;
proxy_pass
http
://
127
.
0
.
0
.
1
:
5000
;
proxy_read_timeout
86400
s
;
proxy_send_timeout
86400
s
;
allow
all
;
# Any IP can perform any other requests
add_header
'Access-Control-Allow-Headers'
'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range'
;
add_header
'Access-Control-Allow-Methods'
'GET,POST,OPTIONS'
;
}
}
\ No newline at end of file
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