Skip to content

Commit

Permalink
🚑 Fixes changing default site setting
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
frenck committed May 16, 2019
1 parent 8e64a2a commit c29f687
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
6 changes: 6 additions & 0 deletions proxy-manager/rootfs/etc/cont-init.d/npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ if ! bashio::fs.directory_exists "/ssl/nginxproxymanager"; then
/ssl/nginxproxymanager
fi

if ! bashio::fs.directory_exists "/data/nginx/default_host"; then
mkdir -p \
/data/nginx/default_host \
/data/nginx/default_www
fi

# Creates basic temporary files directory structure
# Needed for caching
mkdir -p \
Expand Down
31 changes: 31 additions & 0 deletions proxy-manager/rootfs/var/www/html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Default Site</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<style>
.jumbotron { margin-top: 50px; }
</style>
</head>
<body>
<div class="container">
<div class="jumbotron">
<h1>Congratulations!</h1>
<p>You've successfully started the Nginx Proxy Manager.</p>
<p>If you're seeing this site then you're trying to access a host that isn't set up yet.</p>
<p>Log in to the Admin panel to get started.</p>
</div>
<p class="text-center">
<small>
Powered by
<a href="https://github.com/hassio-addons/addon-nginx-proxy-manager" target="_blank">
Community Hass.io Add-ons: Nginx Proxy Manager
</a>
</small>
</p>
</div>
</body>
</html>

0 comments on commit c29f687

Please sign in to comment.