Compare commits

...

2 Commits

Author SHA1 Message Date
fd7725b7b9 Update me page 2023-03-23 20:47:28 +01:00
3246648f82 debug nginx 2023-01-04 04:02:31 +01:00
5 changed files with 56 additions and 23 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.idea
dist
node_modules

View File

@ -8,6 +8,7 @@ RUN npm ci && npm run build
FROM nginx:alpine FROM nginx:alpine
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /home/node/app/dist /var/www/html COPY --from=builder /home/node/app/dist /var/www/html
EXPOSE 8080 EXPOSE 8080

22
docker-compose.yml Normal file
View File

@ -0,0 +1,22 @@
version: '3'
networks:
web:
external: true
services:
frontend:
image: docker.cybre.town/adb/adb.sh
build:
dockerfile: ./Dockerfile
context: ./
labels:
- "traefik.enable=true"
- "traefik.http.routers.adb-sh.rule=Host(`adb.sh`)"
- "traefik.http.routers.adb-sh.entrypoints=https"
- "traefik.http.services.adb-sh.loadbalancer.server.port=8080"
- "traefik.http.routers.adb-sh.tls.certresolver=mytlschallenge"
- "traefik.docker.network=web"
ports:
- "9000:8080"

View File

@ -18,7 +18,7 @@ http {
# tcp_nopush on; # tcp_nopush on;
keepalive_timeout 3; keepalive_timeout 3;
# tcp_nodelay on; # tcp_nodelay on;
# gzip on; gzip on;
client_max_body_size 1m; client_max_body_size 1m;
server { server {
@ -77,13 +77,14 @@ http {
location @502 { return 502 '{"status":502,"message":"Bad gateway"}\n'; } location @502 { return 502 '{"status":502,"message":"Bad gateway"}\n'; }
location /mail { location /mail {
return 302 mailto:info@adb.sh; return 302 mailto:info@adb.sh;
} }
location / { location / {
index index.html; index index.html;
root /var/www/html; root /var/www/html;
try_files $uri $uri/ /index.html; try_files $uri $uri/;
absolute_redirect off;
} }
} }
} }

View File

@ -51,16 +51,32 @@ meta:
- working at [54GradSoftware](https://54gradsoftware.de) - working at [54GradSoftware](https://54gradsoftware.de)
### techniques I'm familiar with ### techniques I'm familiar with
#### programming languages & frameworks #### webdev
- HTML - HTML5 / CSS3
- CSS - JavaScript / TypeScript
- JavaScript - frontend / meta frameworks
- TypeScript - Vue / Nuxt
- NodeJS - SolidJS / Solid Start
- Express - backend
- Vue - NodeJS (Express)
- Python - Deno (oak)
- Arduino - Django
- CSS frameworks
- Bootstrap
- Tailwind
#### devops
- linux
- Debian & Ubuntu
- nixOS
- Docker
- Ansible
- Kubernetes
#### database
- MariaDB & Postgres
- MongoDB
- Redis
#### software #### software
- KiCad - KiCad
@ -71,16 +87,6 @@ meta:
- Indesign - Indesign
- Illustrator - Illustrator
#### other
- Linux
- Debian & Ubuntu
- nixOS
- Docker
- Ansible
- MariaDB & Postgres
- MongoDB
- Redis
## :mailbox_with_mail: contact me ## :mailbox_with_mail: contact me
- Matrix: [@adb:adb.sh](https://matrix.to/#/@adb:adb.sh) - Matrix: [@adb:adb.sh](https://matrix.to/#/@adb:adb.sh)