moving project to gitea

This commit is contained in:
2026-07-26 09:35:26 +02:00
parent c1a36ea29b
commit 4486fdcc8a
61 changed files with 33940 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}

View File

@@ -0,0 +1,50 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx
name: nginx
ports:
- containerPort: 80
name: http
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: nginx-config
- mountPath: /usr/share/nginx/html
name: nginx-html
volumes:
- configMap:
name: nginx-config
name: nginx-config
- configMap:
name: nginx-html
name: nginx-html
---
apiVersion: v1
kind: Service
metadata:
labels:
app: nginx
name: nginx
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx
type: ClusterIP

View File

@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>
<head>
<title>Nginx - Environment</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.container {
text-align: center;
background: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
h1 {
color: #333;
margin-bottom: 20px;
}
.env-badge {
display: inline-block;
padding: 10px 20px;
border-radius: 5px;
font-size: 24px;
font-weight: bold;
color: white;
}
</style>
</head>
<body>
<div class="container">
<h1>Welcome to Nginx</h1>
<div class="env-badge" style="background-color: #4CAF50;">
ENVIRONMENT: BASE
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,9 @@
resources:
- deploy.yaml
configMapGenerator:
- name: nginx-config
files:
- default.conf
- name: nginx-html
files:
- index.html