add solution
This commit is contained in:
commit
5d2e9b04e3
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM gitea/gitea:1.14.5-rootless
|
||||
|
||||
ADD toCopy/ /var/lib/gitea/custom/
|
||||
COPY exe.sh /usr/local/bin/
|
||||
|
||||
USER root
|
||||
RUN chmod 777 /usr/local/bin/exe.sh
|
||||
RUN chmod -R 777 /var/lib/gitea/custom
|
||||
|
||||
CMD ["/usr/local/bin/exe.sh"]
|
6
README.md
Normal file
6
README.md
Normal file
@ -0,0 +1,6 @@
|
||||
# Instalacja
|
||||
|
||||
``` bash
|
||||
heroku create s<INDEX>-gitea --region=eu --manifest
|
||||
|
||||
```
|
31
exe.sh
Normal file
31
exe.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
|
||||
#postgres://u31jkbnvvpd15e:pa8cfe0badf685292f0a11bbd79fa914561832dbe604f0ea0c3aa8282a85bff11@c5hilnj7pn10vb.cluster-czrs8kj4isg7.us-east-1.rds.amazonaws.com:5432/d7f6pcdio089u7
|
||||
# {print $0} "postgres"
|
||||
# {print $1} ""
|
||||
# {print $2} ""
|
||||
# {print $3} ""
|
||||
|
||||
USER="$(echo "$DATABASE_URL" | awk -F[/:@] '{print $4}')"
|
||||
PASSWD="$(echo "$DATABASE_URL" | awk -F[/:@] '{print $5}')"
|
||||
HOST="$(echo "$DATABASE_URL" | awk -F[/:@] '{print $6}')"
|
||||
PORTDB="$(echo "$DATABASE_URL" | awk -F[/:@] '{print $7}')"
|
||||
NAME="$(echo "$DATABASE_URL" | awk -F[/:@] '{print $8}')"
|
||||
|
||||
echo "[server]" >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "HTTP_PORT = $PORT" >> /var/lib/gitea/custom/conf/app.ini
|
||||
|
||||
echo "[database]" >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "DB_TYPE = postgres" >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "HOST = $HOST:$PORTDB" >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "NAME = $NAME" >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "USER = $USER" >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "PASSWD = $PASSWD" >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "SSL_MODE=require" >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "[ui]" >> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "DEFAULT_THEME= arc-green">> /var/lib/gitea/custom/conf/app.ini
|
||||
echo "REACTIONS = wine_glass:, white_check_mark:, x:, warning:" >> /var/lib/gitea/custom/conf/app.ini
|
||||
|
||||
cat /var/lib/gitea/custom/conf/app.ini
|
||||
|
||||
/usr/local/bin/gitea web
|
7
heroku.yml
Normal file
7
heroku.yml
Normal file
@ -0,0 +1,7 @@
|
||||
setup:
|
||||
addons:
|
||||
- plan: heroku-postgresql:essential-0
|
||||
as: DATABASE
|
||||
build:
|
||||
docker:
|
||||
web: Dockerfile
|
1
toCopy/conf/app.ini
Normal file
1
toCopy/conf/app.ini
Normal file
@ -0,0 +1 @@
|
||||
APP_NAME = WMI_KRYSTIAN_OSINSKI
|
72
toCopy/public/assets/s444820.html
Normal file
72
toCopy/public/assets/s444820.html
Normal file
@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>O autorze</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #f4f4f9;
|
||||
color: #333;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 50px auto;
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.info {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.info p {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.author-photo {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
border-radius: 50%;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
object-fit: cover;
|
||||
border: 3px solid #888;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
margin-top: 30px;
|
||||
font-size: 0.9em;
|
||||
color: #666;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>O autorze</h1>
|
||||
<img src="https://media.licdn.com/dms/image/v2/D4D03AQExqdjuXjAH9w/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1708775800128?e=1738195200&v=beta&t=dFkIhunNQeJbuA8Q8KPoVcSmB8pGzXHqezvU2_DyKRM" alt="Zdjęcie autora" class="author-photo">
|
||||
<div class="info">
|
||||
<p><strong>Imię i nazwisko:</strong> Krystian Osiński</p>
|
||||
<p><strong>Numer indeksu:</strong> S444820</p>
|
||||
<p><a href="https://www.linkedin.com/in/krystian-osi%C5%84ski-6a4b46245/">Linkedin</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
© 2024 Krystian Osiński
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
1
toCopy/templates/custom/extra_links.tmpl
Normal file
1
toCopy/templates/custom/extra_links.tmpl
Normal file
@ -0,0 +1 @@
|
||||
<a class="item" href="{{AppSubUrl}}/assets/s444820.html">s444820</a>
|
Loading…
Reference in New Issue
Block a user