File tree Expand file tree Collapse file tree 2 files changed +63
-0
lines changed Expand file tree Collapse file tree 2 files changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM nginx:latest
2
+ COPY default.conf /etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
1
+ server {
2
+ listen 80;
3
+ listen [::]:80;
4
+ server_name localhost;
5
+
6
+ #access_log /var/log/nginx/host.access.log main;
7
+
8
+ location / {
9
+ root /usr/share/nginx/html;
10
+ index index.html index.htm;
11
+ }
12
+
13
+
14
+ location /user/ {
15
+ default_type application/json;
16
+ return 200 '{"message": "User service route working"}';
17
+ }
18
+
19
+ location /matching/ {
20
+ default_type application/json;
21
+ return 200 '{"message": "Matching service route working"}';
22
+ }
23
+
24
+ location /collab/ {
25
+ default_type application/json;
26
+ return 200 '{"message": "Collaboration service route working"}';
27
+ }
28
+
29
+ #error_page 404 /404.html;
30
+
31
+ # redirect server error pages to the static page /50x.html
32
+ #
33
+ error_page 500 502 503 504 /50x.html;
34
+ location = /50x.html {
35
+ root /usr/share/nginx/html;
36
+ }
37
+
38
+ # proxy the PHP scripts to Apache listening on 127.0.0.1:80
39
+ #
40
+ #location ~ \.php$ {
41
+ # proxy_pass http://127.0.0.1;
42
+ #}
43
+
44
+ # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
45
+ #
46
+ #location ~ \.php$ {
47
+ # root html;
48
+ # fastcgi_pass 127.0.0.1:9000;
49
+ # fastcgi_index index.php;
50
+ # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
51
+ # include fastcgi_params;
52
+ #}
53
+
54
+ # deny access to .htaccess files, if Apache's document root
55
+ # concurs with nginx's one
56
+ #
57
+ #location ~ /\.ht {
58
+ # deny all;
59
+ #}
60
+ }
61
+
You can’t perform that action at this time.
0 commit comments