Skip to content

Commit 2a7fb9d

Browse files
change nginx listening port and nginx.conf
1 parent 5e7b7ca commit 2a7fb9d

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ This is a basic template for getting Travis CI's container based infrastructure
66

77
I actually use this a test playground for my Nginx Bad Bot Blocker - https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker so it's always changing but it will give you the basics of how to properly install Nginx on Travis.
88

9-
My previous commits to this repository used incorrect (but working) methods of installing nginx you will see now that the .travis.yml has a simple command to install nginx-full this is is the correct way to properly have Travis CI install nginx not by adding repo's and manually installing it anymore as it was before.
10-
119
## The purpose of this repository?
1210

1311
Travis CI is a great system for checking and testing your build's Commits, Pull Requests and Merges. Travis runs everything inside a Docker container so it's a fully contained system that you can run build tests on your GIT repository and you can't break anything outside of it.

travis-ci/defaultsite.vhost

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
server {
22
# SSL configuration
33
#
4-
listen *:80;
5-
listen [::]:80;
4+
listen *:8080;
5+
listen [::]:8080;
66

77
root /var/www/html;
88
server_name localhost;

travis-ci/install-nginx2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ls -la /etc/nginx/sites-available
6969
sudo rm /etc/nginx/sites-enabled/default
7070
sudo cp $TRAVIS_BUILD_DIR/travis-ci/defaultsite.vhost /etc/nginx/sites-available/default.vhost
7171
sudo ln -s /etc/nginx/sites-available/default.vhost /etc/nginx/sites-enabled/default.vhost
72-
#sudo mv $TRAVIS_BUILD_DIR/travis-ci/nginx.conf /etc/nginx/nginx.conf
72+
sudo mv $TRAVIS_BUILD_DIR/travis-ci/nginx.conf /etc/nginx/nginx.conf
7373
sudo nginx -c /etc/nginx/nginx.conf
7474
sudo nginx -t
7575
sudo nginx -V

travis-ci/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ http {
2525
client_max_body_size 50M;
2626
types_hash_max_size 2048;
2727
large_client_header_buffers 4 16k;
28-
#variables_hash_max_size: 2048;
28+
variables_hash_max_size: 2048;
2929
variables_hash_bucket_size: 1024;
3030
# Our request limiter zone for wp-login attacks
3131
limit_req_zone $binary_remote_addr zone=wp-login:10m rate=1r/s;

0 commit comments

Comments
 (0)