Skip to content

Commit 43291b4

Browse files
committed
added nginx conf and updated docker-cloner port
1 parent 36d184f commit 43291b4

2 files changed

Lines changed: 84 additions & 1 deletion

File tree

‎docker-compose.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
image: abhibr/deployr-docker-cloner:latest
1212
restart: always
1313
ports:
14-
- "8083:8080" # changed from 8080:8080 → 8083:8080
14+
- "8083:8080" # changed from 8080:8080 → 8083:8080
1515
volumes:
1616
- ./output:/app/output
1717
- /var/run/docker.sock:/var/run/docker.sock

‎nginx.conf‎

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# ==========================================================
2+
# ✅ HTTPS: API Server (api.deployr.abhi.wtf) on port 8083
3+
# ==========================================================
4+
server {
5+
listen 443 ssl;
6+
server_name api.deployr.abhi.wtf;
7+
8+
ssl_certificate /etc/letsencrypt/live/api.deployr.abhi.wtf/fullchain.pem;
9+
ssl_certificate_key /etc/letsencrypt/live/api.deployr.abhi.wtf/privkey.pem;
10+
include /etc/letsencrypt/options-ssl-nginx.conf;
11+
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
12+
13+
location / {
14+
proxy_pass http://localhost:8083;
15+
proxy_http_version 1.1;
16+
proxy_set_header Upgrade $http_upgrade;
17+
proxy_set_header Connection 'upgrade';
18+
proxy_set_header Host $host;
19+
proxy_cache_bypass $http_upgrade;
20+
}
21+
}
22+
23+
server {
24+
listen 80;
25+
server_name api.deployr.abhi.wtf;
26+
return 301 https://$host$request_uri;
27+
}
28+
29+
# ==========================================================
30+
# ✅ HTTPS: WebSocket Server (ws.deployr.abhi.wtf) on port 8082
31+
# ==========================================================
32+
server {
33+
listen 443 ssl;
34+
server_name ws.deployr.abhi.wtf;
35+
36+
ssl_certificate /etc/letsencrypt/live/ws.deployr.abhi.wtf/fullchain.pem;
37+
ssl_certificate_key /etc/letsencrypt/live/ws.deployr.abhi.wtf/privkey.pem;
38+
include /etc/letsencrypt/options-ssl-nginx.conf;
39+
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
40+
41+
location / {
42+
proxy_pass http://localhost:8082;
43+
proxy_http_version 1.1;
44+
proxy_set_header Upgrade $http_upgrade;
45+
proxy_set_header Connection 'upgrade';
46+
proxy_set_header Host $host;
47+
proxy_cache_bypass $http_upgrade;
48+
}
49+
}
50+
51+
server {
52+
listen 80;
53+
server_name ws.deployr.abhi.wtf;
54+
return 301 https://$host$request_uri;
55+
}
56+
57+
# ==========================================================
58+
# ✅ HTTPS: Wildcard frontend (*.deployr.live) on port 8081
59+
# ==========================================================
60+
server {
61+
listen 443 ssl;
62+
server_name ~^(.+)\.deployr\.live$;
63+
64+
ssl_certificate /etc/letsencrypt/live/deployr.live/fullchain.pem;
65+
ssl_certificate_key /etc/letsencrypt/live/deployr.live/privkey.pem;
66+
include /etc/letsencrypt/options-ssl-nginx.conf;
67+
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
68+
69+
location / {
70+
proxy_pass http://localhost:8081;
71+
proxy_http_version 1.1;
72+
proxy_set_header Upgrade $http_upgrade;
73+
proxy_set_header Connection 'upgrade';
74+
proxy_set_header Host $host;
75+
proxy_cache_bypass $http_upgrade;
76+
}
77+
}
78+
79+
server {
80+
listen 80;
81+
server_name ~^(.+)\.deployr\.live$;
82+
return 301 https://$host$request_uri;
83+
}

0 commit comments

Comments
 (0)