feat: links defined by environment variables
This commit is contained in:
parent
6750c17306
commit
77508a984e
5 changed files with 7 additions and 6 deletions
|
@ -2,5 +2,6 @@
|
||||||
compose.yml
|
compose.yml
|
||||||
*.dockerfile
|
*.dockerfile
|
||||||
.git*
|
.git*
|
||||||
|
Jenkinsfile
|
||||||
LICENSE
|
LICENSE
|
||||||
README.md
|
README.md
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
||||||
.venv
|
.venv*
|
||||||
.env
|
.env
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|
2
app.py
2
app.py
|
@ -18,7 +18,7 @@ def about():
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def homepage():
|
def homepage():
|
||||||
return render_template("homepage.j2")
|
return render_template("homepage.j2", MONITORING_URL = os.environ['MONITORING_URL'], GIT_URL = os.environ['GIT_URL'])
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
services:
|
services:
|
||||||
build:
|
build:
|
||||||
context: "."
|
context: "."
|
||||||
dockerfile: "latest.dockerfile"
|
dockerfile: "Dockerfile"
|
||||||
container_name: "adrianux"
|
container_name: "adrianux"
|
||||||
image: "adrianux:latest"
|
image: "adrianux:latest"
|
||||||
environment:
|
environment:
|
||||||
- "GIT_URL=http://git.adrianux.net"
|
- "GIT_URL=http://git.adrianux.net"
|
||||||
- "WEBSITE_URL=http://adrianux.net"
|
- "MONITORING_URL=http://adrianux.net"
|
||||||
- "DEBUG_MODE=False"
|
- "DEBUG_MODE=False"
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8080:8080"
|
- "127.0.0.1:8080:8080"
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
<li><a href="/">Homepage</a></li>
|
<li><a href="/">Homepage</a></li>
|
||||||
<li><a href="imprint">Imprint</a></li>
|
<li><a href="imprint">Imprint</a></li>
|
||||||
<li><a href="about">About</a></li>
|
<li><a href="about">About</a></li>
|
||||||
<li><a href="https://cloud.adrianux.net/">Monitoring</a></li>
|
<li><a href="{{ MONITORING_URL }}">Monitoring</a></li>
|
||||||
<li><a href="https://git.adrianux.net/ahoemann">Git</a></li>
|
<li><a href="{{ GIT_URL }}">Git</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Add table
Reference in a new issue