Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ temp

# Ignore website and browser
browsers
websites
websites
example
docker
temp
tests
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
- [feat] View live online coders with in-memory cache i backend
- [feat] shows a floating button for displaying online coders
- [fix] Fixed mobile responsive issues
- [feat] Nginx setup for getting free ssl on our server
17 changes: 17 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ services:
dockerfile: docker/Dockerfile.kotlin
image: executor-kotlin:latest

executeme-nginx:
image: nginx:alpine
ports:
- "9292:9292"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/certs:/etc/nginx/certs:ro
depends_on:
- nodejs-server-image
networks:
- app-network
restart: unless-stopped

nodejs-server-image:
build:
context: .
Expand All @@ -43,3 +56,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- ./temp:/app/temp
restart: unless-stopped

networks:
app-network:
driver: bridge
15 changes: 15 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
events {}

http {
server {
listen 9292 ssl;

ssl_certificate /etc/nginx/certs/selfsigned.crt;
ssl_certificate_key /etc/nginx/certs/selfsigned.key;

location / {
proxy_pass http://executeme-nodejs-server:9091;
proxy_set_header Host $host;
}
}
}