Skip to content

Commit

Permalink
feat: initial commit (#1) (#2)
Browse files Browse the repository at this point in the history
* feat: initial commit (#1)
  • Loading branch information
akryvasheyeu authored Sep 22, 2023
1 parent 7b84c77 commit 18557ee
Show file tree
Hide file tree
Showing 26 changed files with 306 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Coming soon
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM nginxinc/nginx-unprivileged:1.25-alpine-slim
RUN rm /etc/nginx/conf.d/default.conf
COPY static /var/www
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/themes.conf.template /etc/nginx/templates/themes.conf.template
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
all: build

build:
docker build -t dial-chat-themes .

run:
docker run -p 127.0.0.1:80:8080/tcp dial-chat-themes

help:
@echo '===================='
@echo 'build - build docker image'
@echo 'test - run docker image'
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Overview

The project is an HTTP server hosting themes for chatbot UI web application. A theme is a suite of static resources of images, fonts or set of colors.

More details about theme customization can be found [here](https://github.com/epam/ai-dial-chat/blob/development/docs/THEME-CUSTOMIZATION.md).

# Developer Environment

The HTTP server is run in Docker container. All you need is to install the latest Docker engine.

# Build

Builds Docker image with the tag dial-chat-themes:latest
```bash
make build
```

# Run

Runs Docker container and binds the container port 8080 to the host network interface localhost:80

```bash
make run
```

39 changes: 39 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
worker_processes auto;

error_log /var/log/nginx/error.log notice;
pid /tmp/nginx.pid;

events {
worker_connections 1024;
}

http {
proxy_temp_path /tmp/proxy_temp;
client_body_temp_path /tmp/client_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;

include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main
'$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;

keepalive_timeout 65;

gzip on;
gzip_http_version 1.0;
gzip_min_length 500;
gzip_buffers 4 8k;
gzip_comp_level 4;
server_tokens off;

include /etc/nginx/conf.d/*.conf;
}
15 changes: 15 additions & 0 deletions nginx/themes.conf.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server {
listen 8080;
large_client_header_buffers 4 16k;

error_log /var/log/nginx/error.log;
root /var/www;

location / {
expires 1M;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
add_header Cache-Control "public";
}
}
10 changes: 10 additions & 0 deletions static/Addon_EPAM10K_Semantic_Search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions static/Addon_Wolfram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions static/Ask_EPAM_Pre-sale.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions static/Assistant10K.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions static/EPAM10K_Golden_QNA.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions static/EPAM10K_Semantic_Search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 18557ee

Please sign in to comment.