fix binding
This commit is contained in:
parent
25ce83a956
commit
addde12044
3
data/docker/webserver_bind.yml
Normal file
3
data/docker/webserver_bind.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
bind_address: 0.0.0.0
|
|
@ -4,8 +4,11 @@ services:
|
||||||
build: .
|
build: .
|
||||||
image: postal
|
image: postal
|
||||||
container_name: postal
|
container_name: postal
|
||||||
|
ports:
|
||||||
|
- 80:5000
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/postal:/opt/postal/config
|
- ./data/postal:/opt/postal/config
|
||||||
|
- ./data/docker:/docker
|
||||||
environment:
|
environment:
|
||||||
- POSTAL_HOSTNAME=idontknow.nowhere.com
|
- POSTAL_HOSTNAME=idontknow.nowhere.com
|
||||||
- MYSQL_ROOT_PASSWORD=changeme
|
- MYSQL_ROOT_PASSWORD=changeme
|
||||||
|
|
36
index.html
Normal file
36
index.html
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html class='subPage'>
|
||||||
|
<head>
|
||||||
|
<title>Login - Postal</title>
|
||||||
|
<meta name="csrf-param" content="authenticity_token" />
|
||||||
|
<meta name="csrf-token" content="ETAPzS413zLaaKnJR4YYEzMsUAWD9Rhw119NAPEladV6ZWacURGZu0Z9ifjAes4Gz7zfPCj88dj/jPBTTHQQFw==" />
|
||||||
|
<link rel="stylesheet" media="screen" href="/assets/application/application-63cd9179d496b3f7b6779afe55842c373b6de50a287023d43a8935118d9aeb71.css" data-turbolinks-track="reload" />
|
||||||
|
<script src="/assets/application/application-355ffd7890e3b4a9a0464507204b1896349e384ed6021e54aef9210fea395078.js" data-turbolinks-track="reload"></script>
|
||||||
|
<link href='/assets/favicon-684fcb94e0ca8f90d4a1ba71b4d097f68e0646119456a1d249c6daddf154aa65.png' rel='shortcut icon'>
|
||||||
|
<meta name="turbolinks-cache-control" content="no-cache">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class='subPageBox'>
|
||||||
|
<div class='subPageBox__title'>
|
||||||
|
Welcome to Postal
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='subPageBox__content'>
|
||||||
|
<form class="loginForm" action="/login" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="authenticity_token" value="aKC9cnQhm+PgUEGELVw+TCx2VK2q1qMfe/4ExQEh1GxtGb+E2LWUG6Ay9OGifmQw7UthcWE82sxYmtVw+g9rRQ==" />
|
||||||
|
<input type="hidden" name="return_to" id="return_to" value="/" />
|
||||||
|
<p class='loginForm__input'><input type="email" name="email_address" id="email_address" value="" autocomplete="off" spellcheck="false" class="input input--text input--onWhite" placeholder="Your e-mail address" autofocus="autofocus" tabindex="1" /></p>
|
||||||
|
<p class='loginForm__input'><input type="password" name="password" id="password" value="" class="input input--text input--onWhite" placeholder="Your password" tabindex="2" /></p>
|
||||||
|
<div class='loginForm__submit'>
|
||||||
|
<ul class='loginForm__links'>
|
||||||
|
<li><a href="/login/reset?return_to=%2F">Forgotten your password?</a></li>
|
||||||
|
<li><a href="/signup?return_to=%2F">Create a new user</a></li>
|
||||||
|
</ul>
|
||||||
|
<p><input type="submit" name="commit" value="Login" class="button button--positive" tabindex="3" data-disable-with="Login" /></p>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -6,6 +6,10 @@ cp -R /opt/postal/config-original/* /opt/postal/config
|
||||||
## Generate keys
|
## Generate keys
|
||||||
/opt/postal/bin/postal initialize-config
|
/opt/postal/bin/postal initialize-config
|
||||||
|
|
||||||
|
if [[ $(cat /opt/postal/config/postal.yml| grep -i web_server |wc -l) == 0 ]]; then
|
||||||
|
cat /docker/webserver_bind.yml >> /opt/postal/config/postal.yml
|
||||||
|
fi
|
||||||
|
|
||||||
## Set Hostname
|
## Set Hostname
|
||||||
sed -i "s/postal\.example\.com/$POSTAL_HOSTNAME/" /opt/postal/config/postal.yml
|
sed -i "s/postal\.example\.com/$POSTAL_HOSTNAME/" /opt/postal/config/postal.yml
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user