File tree 3 files changed +37
-10
lines changed
3 files changed +37
-10
lines changed Original file line number Diff line number Diff line change 1
- FROM ruby:2.3.5
2
-
3
- COPY . /acceptbitcoin
4
- WORKDIR /acceptbitcoin
5
-
6
- RUN bundle install
7
-
8
- EXPOSE 4000
9
-
10
- CMD [ "jekyll" , "serve" , "-H" , "0.0.0.0" ]
1
+ FROM nginx
2
+ COPY nginx.conf /etc/nginx/conf.d/default.conf
3
+ COPY _site/ /usr/share/nginx/html/
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ acceptBitcoin.cash also includes a Docker image for easy deployment. You can bui
45
45
46
46
```
47
47
cd ~/acceptbitcoincash
48
+ gem install bundler
49
+ bundle exec jekyll build
48
50
docker build -t acceptbitcoincash .
49
51
docker run -p 4000:4000 acceptbitcoincash
50
52
```
Original file line number Diff line number Diff line change
1
+ server {
2
+ listen 80 ;
3
+ server_name acceptbitcoin.cash;
4
+
5
+ if ( $http_x_forwarded_proto = 'http' ) {
6
+ return 301 https://$host$request_uri ;
7
+ }
8
+
9
+ root /usr/share/nginx/html;
10
+
11
+ location / {
12
+ index index.html;
13
+ }
14
+
15
+ error_page 500 502 503 504 /50x.html;
16
+ location = /50x.html {
17
+ root /usr/share/nginx/html;
18
+ }
19
+ }
20
+
21
+ ## Compression.
22
+ gzip on ;
23
+ gzip_buffers 16 8k ;
24
+ gzip_comp_level 1 ;
25
+ gzip_http_version 1.1 ;
26
+ gzip_min_length 10 ;
27
+ gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/x-icon application/vnd.ms-fontobject font/opentype application/x-font-ttf;
28
+ gzip_vary on ;
29
+ gzip_proxied any; # Compression for all requests.
30
+ ## No need for regexps. See
31
+ ## http://wiki.nginx.org/NginxHttpGzipModule#gzip_disable
32
+ gzip_disable msie6;
You can’t perform that action at this time.
0 commit comments