Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F49507067
server.conf
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
server.conf
View Options
# -------------------------------------------------------------
# Configuration for Docker PaaS front-end nginx
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Author: Sébastien Santoro aka Dereckson
# Created: 2020-02-18
# Source file: roles/paas-docker/nginx/files/vhosts/base/server.conf
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
# -------------------------------------------------------------
# TLS site
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
server {
listen 80;
listen [::]:80;
server_name {{ fqdn }};
include includes/letsencrypt;
return 301 https://{{ fqdn }}$request_uri;
}
server {
server_name {{ fqdn }};
include includes/tls;
ssl_certificate /srv/letsencrypt/etc/live/{{ fqdn }}/fullchain.pem;
ssl_certificate_key /srv/letsencrypt/etc/live/{{ fqdn }}/privkey.pem;
include includes/letsencrypt;
root /var/wwwroot-content/{{ fqdn }};
index index.html;
###
### API
###
location ~ [^/]\.json(/|$) {
include includes/cors-open;
}
}
# -------------------------------------------------------------
# Probably not any TLS certificate available, so serve on :80
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
server {
listen 80;
listen [::]:80;
server_name {{ ipv4 }} {{ ipv6 }} localhost;
location / {
root /var/wwwroot-content/{{ fqdn }};
index index.html;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 14, 16:08 (13 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4013095
Default Alt Text
server.conf (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment