Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scripts-perso
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daniel Stan
scripts-perso
Commits
e39883a9
Commit
e39883a9
authored
Apr 18, 2017
by
Daniel STAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nginx sur cupcake
parent
6a294a49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
web/sites/99-fallback-cupcake-2-kugel
web/sites/99-fallback-cupcake-2-kugel
+58
-0
No files found.
web/sites/99-fallback-cupcake-2-kugel
0 → 100644
View file @
e39883a9
resolver 213.186.33.99;
server {
listen 80 default_server; ## listen for ipv4; this line is default and implied
listen [::]:80 default_server ipv6only=on; ## listen for ipv6
root /var/www/tudo.re;
# Make site accessible from http://localhost/
server_name _;
location @tokugel {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
# try_files $uri $uri/ /index.html;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
proxy_redirect off;
proxy_set_header Host $host;
proxy_pass http://kugel.tudo.re;
}
location '/.well-known/acme-challenge' {
default_type "text/plain";
alias /tmp/letsencrypt-auto/.well-known/acme-challenge;
try_files $uri @tokugel;
}
location / {
rewrite ^(.*)$ https://$host$1 permanent;
}
}
server {
listen 443 default_server;
listen [::]:443 default_server ipv6only=on;
server_name _;
root /var/www/tudo.re;
index index.html index.htm;
ssl on;
# todo: replace /tmp/ by /etc/letsencrypt/live
ssl_certificate /tmp/www.tudo.re/fullchain.pem;
ssl_certificate_key /tmp/www.tudo.re/privkey.pem;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
# try_files $uri $uri/ /index.html;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
proxy_redirect off;
proxy_set_header Host $host;
proxy_pass https://kugel.tudo.re;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment