mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-20 01:59:22 +01:00
20 lines
440 B
Plaintext
20 lines
440 B
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
listen 443;
|
|
listen [::]:443;
|
|
|
|
# Enable this if your want HSTS (recommended)
|
|
add_header Strict-Transport-Security "max-age=15552000; includeSubdomains; preload";
|
|
|
|
server_name something.example.org;
|
|
|
|
# NOTE: For X-Real-IP & X-Forwarded-For see ../conf.d/rproxy.conf
|
|
# Behind CloudFlare see ../conf.d/cloudflare.conf
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8080/;
|
|
}
|
|
}
|
|
|