Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
gkaskonas committed Jul 22, 2020
1 parent 6c42f86 commit bc13962
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# rocketchat-infra
Infrastructure for RocketChat in AWS!

Access at https://rocketchat.toastedbuns.co.uk
Access at https://rocketchat.example.co.uk

Done with Terraform, Ansible, Python and Shell.

Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ data "aws_subnet_ids" "all" {
}

resource "aws_route53_zone" "primary" {
name = "toastedbuns.co.uk"
name = "example.co.uk"
}

resource "aws_route53_record" "rocketchat" {
zone_id = "${aws_route53_zone.primary.zone_id}"
name = "rocketchat.toastedbuns.co.uk"
name = "rocketchat.example.co.uk"
type = "A"
alias {
name = "${module.cdn.domain_name}"
Expand Down
2 changes: 1 addition & 1 deletion modules/cdn/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "aws_cloudfront_distribution" "rocketchat_distribution" {
enabled = true
comment = "CDN for Rocketchat"
default_root_object = "index.html"
aliases = ["rocketchat.toastedbuns.co.uk"]
aliases = ["rocketchat.example.co.uk"]
wait_for_deployment = false

default_cache_behavior {
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def generate_rocketchat_command(hosts):
mongo_url = 'mongodb://{0}'.format(line)[:-1]


final_string = "#!/bin/bash\nsudo docker run -d -v /mnt/efs/rocketchat:/app/uploads -e PORT=3000 -e ROOT_URL=https://rocketchat.toastedbuns.co.uk \
final_string = "#!/bin/bash\nsudo docker run -d -v /mnt/efs/rocketchat:/app/uploads -e PORT=3000 -e ROOT_URL=https://rocketchat.example.co.uk \
-e MONGO_URL={0}/rocketchat?replicaSet=rocketchat -e MONGO_OPLOG_URL={0}/local?replicaSet=rocketchat -e Accounts_UseDNSDomainCHeck=True -p 3000:3000 rocket.chat:latest".format(mongo_url)

f = open(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../ansible_stuff/init_rocketchat'), 'w')
Expand Down
4 changes: 2 additions & 2 deletions scripts/install_rocketchat
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ http {
server {
listen 80;
server_name rocketchat.toastedbuns.co.uk;
server_name rocketchat.example.co.uk;
location / {
proxy_pass http://localhost:3000/;
proxy_http_version 1.1;
Expand All @@ -97,6 +97,6 @@ location / {
sudo service nginx restart


# sudo docker run -v uploads:/app/uploads -e PORT=3000 -e ROOT_URL=http://rocketchat.toastedbuns.co.uk -e MONGO_URL=mongodb://ec2-34-244-243-171.eu-west-1.compute.amazonaws.com:27017,ec2-34-244-243-171.eu-west-1.compute.amazonaws.com:27017/rocketchat?replicaSet=rocketchat -e MONGO_OPLOG_URL=mongodb://ec2-34-244-243-171.eu-west-1.compute.amazonaws.com:27017,ec2-34-244-243-171.eu-west-1.compute.amazonaws.com:27017/local?replicaSet=rocketchat -e Accounts_UseDNSDomainCHeck=True -p 3000:3000 rocket.chat:latest
# sudo docker run -v uploads:/app/uploads -e PORT=3000 -e ROOT_URL=http://rocketchat.example.co.uk -e MONGO_URL=mongodb://ec2-34-244-243-171.eu-west-1.compute.amazonaws.com:27017,ec2-34-244-243-171.eu-west-1.compute.amazonaws.com:27017/rocketchat?replicaSet=rocketchat -e MONGO_OPLOG_URL=mongodb://ec2-34-244-243-171.eu-west-1.compute.amazonaws.com:27017,ec2-34-244-243-171.eu-west-1.compute.amazonaws.com:27017/local?replicaSet=rocketchat -e Accounts_UseDNSDomainCHeck=True -p 3000:3000 rocket.chat:latest


0 comments on commit bc13962

Please sign in to comment.