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
|
||||
*.dockerfile
|
||||
.git*
|
||||
Jenkinsfile
|
||||
LICENSE
|
||||
README.md
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
|||
.venv
|
||||
.venv*
|
||||
.env
|
||||
__pycache__
|
||||
|
|
2
app.py
2
app.py
|
@ -18,7 +18,7 @@ def about():
|
|||
|
||||
@app.route("/")
|
||||
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__":
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
services:
|
||||
build:
|
||||
context: "."
|
||||
dockerfile: "latest.dockerfile"
|
||||
dockerfile: "Dockerfile"
|
||||
container_name: "adrianux"
|
||||
image: "adrianux:latest"
|
||||
environment:
|
||||
- "GIT_URL=http://git.adrianux.net"
|
||||
- "WEBSITE_URL=http://adrianux.net"
|
||||
- "MONITORING_URL=http://adrianux.net"
|
||||
- "DEBUG_MODE=False"
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
<li><a href="/">Homepage</a></li>
|
||||
<li><a href="imprint">Imprint</a></li>
|
||||
<li><a href="about">About</a></li>
|
||||
<li><a href="https://cloud.adrianux.net/">Monitoring</a></li>
|
||||
<li><a href="https://git.adrianux.net/ahoemann">Git</a></li>
|
||||
<li><a href="{{ MONITORING_URL }}">Monitoring</a></li>
|
||||
<li><a href="{{ GIT_URL }}">Git</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<body>
|
||||
|
|
Loading…
Add table
Reference in a new issue