Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Commit

Permalink
Reverted to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jstsddg committed Mar 30, 2020
1 parent c4ce547 commit 04730fb
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,41 +1,13 @@
server {
# HTTP on port 80
listen 80;
server_name happyhamster.org

# This location references every path
location / {

# Redirect http to https if the connection was made with http at the proxy level
# https://serverfault.com/a/767930
if ($http_x_forwarded_proto = "http") {
return 301 https://happyhamster.org$request_uri;
}

# Path of the transpiled files to serve
root /usr/share/nginx/html;

# Index file
# > Serve /index.html from /
index index.html;

# Serve /index.html if the path is not found,
# because Angular is a single page application and resolves paths itselfs.
try_files $uri $uri/ /index.html =404;
}
}
server {
# HTTP on port 80
listen 80;
server_name dev.happyhamster.org

# This location references every path
location / {

# Redirect http to https if the connection was made with http at the proxy level
# https://serverfault.com/a/767930
if ($http_x_forwarded_proto = "http") {
return 301 https://dev.happyhamster.org$request_uri;
return 301 https://$host$request_uri;
}

# Path of the transpiled files to serve
Expand Down

0 comments on commit 04730fb

Please sign in to comment.