Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switching null.co.in to null.community and moving to https urls #101

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# null Swachalit

This repository contains source code of application used to run https://null.co.in
This repository contains source code of application used to run https://null.community

[![CircleCI](https://circleci.com/gh/null-open-security-community/swachalit/tree/master.svg?style=svg)](https://circleci.com/gh/null-open-security-community/swachalit/tree/master)
![Build and Test](https://github.com/null-open-security-community/swachalit/workflows/Rails%20Build%20and%20Test/badge.svg)
Expand Down
6 changes: 3 additions & 3 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def sm_icon_with_link(icon, link, size = '40x40')
end
end

def twitter_icon(url = 'http://www.null.co.in', size = '40x40')
def twitter_icon(url = 'https://www.null.community', size = '40x40')
sm_icon_with_link('twitter', url, size)
end

def facebook_icon(url = 'http://www.null.co.in', size = '40x40')
def facebook_icon(url = 'https://www.null.community', size = '40x40')
sm_icon_with_link('facebook', url, size)
end

Expand All @@ -95,7 +95,7 @@ def safe_url(s)
return '#' if s =~ /\Ajavascript/i
return '#' if s =~ /\Achrome/i
return '#' if s =~ /\Aabout/i
return "http://#{s}" if s !~ /\Ahttp/i # Force protocol
return "https://#{s}" if s !~ /\Ahttp/i # Force protocol

return s
end
Expand Down
4 changes: 2 additions & 2 deletions app/views/events/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@
</small>
<small>
<!-- Facebook Share Button -->
<a class="btnz share facebook" href="http://www.facebook.com/sharer/sharer.php?u=http://null.co.in/events/<%= @event.id %>"><i class="fa fa-facebook"></i> Share</a>
<a class="btnz share facebook" href="https://www.facebook.com/sharer/sharer.php?u=https://null.community/events/<%= @event.id %>"><i class="fa fa-facebook"></i> Share</a>
</small>
<small>
<!-- Twitter Share Button -->
<a class="btnz share twitter" href="https://twitter.com/intent/tweet?text=I%20am%20attending%20null%20<%= @event.chapter.name %>%20<%= @event.event_type.name %>,%20A%20Information%20Security%20Event&url=http://null.co.in/events/<%= @event.id %>&via=null0x00"><i class="fa fa-twitter"></i> Tweet</a>
<a class="btnz share twitter" href="https://twitter.com/intent/tweet?text=I%20am%20attending%20null%20<%= @event.chapter.name %>%20<%= @event.event_type.name %>,%20A%20Information%20Security%20Event&url=https://null.community/events/<%= @event.id %>&via=null0x00"><i class="fa fa-twitter"></i> Tweet</a>
</small>

</p>
Expand Down
2 changes: 1 addition & 1 deletion app/views/home/about.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class='col-md-12'>
<h4>About</h4>
<p>
This portal will host event related information for null community. For more details <%= link_to "go here", "http://www.null.co.in", :target => '_blank' %>.
This portal will host event related information for null community. For more details <%= link_to "go here", "https://www.null.community", :target => '_blank' %>.
</p>
<p>
This application is now open source and available in our <%= link_to "Github", "https://github.com/null-open-security-community/swachalit", target: '_blank', rel: 'noreferer' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ null is open, professional, inclusive, responsible, and most importantly complet
<div class="panel-heading">
<center>Security Jobs</center>
</div>
<a href='http://jobs.null.co.in/' target='_blank' style='color: inherit'>
<a href='https://jobs.null.community/' target='_blank' style='color: inherit'>
<div class='panel-body'>
<center>
<h1><%= fa_icon('external-link') %></h1>
Expand Down
6 changes: 3 additions & 3 deletions app/views/layouts/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<div class='row'>
<div class='col-md-12'>
<ul class='list-inline'>
<li><%= twitter_icon('http://www.twitter.com/null0x00') %></li>
<li><%= facebook_icon('http://www.facebook.com/null0x00') %></li>
<li><%= twitter_icon('https://www.twitter.com/null0x00') %></li>
<li><%= facebook_icon('https://www.facebook.com/null0x00') %></li>
<li><%= group_icon('https://groups.google.com/forum/#!forum/null-co-in') %></li>
</ul>
</div>
Expand All @@ -25,7 +25,7 @@
<div class='col-md-12'>
<center>
<small>
Made with <a href="http://www.rubyonrails.org" target="_blank">Ruby on Rails</a> with love from <a href="http://www.getbootstrap.com" target='_blank'>Twitter Bootstrap</a> &amp; <a href="http://www.bootswatch.com" target='_blank'>Bootswatch</a>.
Made with <a href="https://www.rubyonrails.org" target="_blank">Ruby on Rails</a> with love from <a href="https://www.getbootstrap.com" target='_blank'>Twitter Bootstrap</a> &amp; <a href="https://www.bootswatch.com" target='_blank'>Bootswatch</a>.
Checkout our <%= link_to 'Privacy Policy', privacy_path %>
</small>
</center>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</ul>
</li>
<li>
<a href='https://blog.null.co.in/' target='_blank'><%= fa_icon('rss') %> Blog</a>
<a href='https://blog.null.community/' target='_blank'><%= fa_icon('rss') %> Blog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
Expand Down
10 changes: 5 additions & 5 deletions app/views/registrations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,27 @@
<div class='form-group'>
<div class='input-group'>
<span class="input-group-addon"><%= fa_icon('twitter') %></span>
<%= f.text_field :twitter_handle, :placeholder => 'http://www.twitter.com/example', :class => 'form-control' %>
<%= f.text_field :twitter_handle, :placeholder => 'https://www.twitter.com/example', :class => 'form-control' %>
</div>
<br/>
<div class='input-group'>
<span class="input-group-addon"><%= fa_icon('facebook') %></span>
<%= f.text_field :facebook_profile, :placeholder => 'http://www.facebook.com/example', :class => 'form-control' %>
<%= f.text_field :facebook_profile, :placeholder => 'https://www.facebook.com/example', :class => 'form-control' %>
</div>
<br/>
<div class='input-group'>
<span class="input-group-addon"><%= fa_icon('linkedin') %></span>
<%= f.text_field :linkedin_profile, :placeholder => 'http://www.linkedin.com/example', :class => 'form-control' %>
<%= f.text_field :linkedin_profile, :placeholder => 'https://www.linkedin.com/example', :class => 'form-control' %>
</div>
<br/>
<div class='input-group'>
<span class="input-group-addon"><%= fa_icon('github') %></span>
<%= f.text_field :github_profile, :placeholder => 'http://www.github.com/example', :class => 'form-control' %>
<%= f.text_field :github_profile, :placeholder => 'https://www.github.com/example', :class => 'form-control' %>
</div>
<br/>
<div class='input-group'>
<span class="input-group-addon"><%= fa_icon('home') %></span>
<%= f.text_field :homepage, :placeholder => 'http://www.example.com', :class => 'form-control' %>
<%= f.text_field :homepage, :placeholder => 'https://www.example.com', :class => 'form-control' %>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Application < Rails::Application
if Rails.env.development?
Rails.application.routes.default_url_options[:host] = '127.0.0.1'
else
Rails.application.routes.default_url_options[:host] = ENV['APPLICATION_HOST'] || 'null.co.in'
Rails.application.routes.default_url_options[:host] = ENV['APPLICATION_HOST'] || 'null.community'
end

require 'dotenv/load'
Expand Down
4 changes: 2 additions & 2 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
set :user, "abhisek"
set :use_sudo, false

role :app, "null.co.in"
role :web, "null.co.in"
role :app, "null.community"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abhisek is it okey to change name to null.community here.

role :web, "null.community"

namespace :deploy do
task :start do ; end
Expand Down
4 changes: 2 additions & 2 deletions sys/nginx/null_automation.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ upstream app1 {

server {
listen 173.255.246.230:8000;
server_name swachalit.null.co.in;
proxy_redirect http://swachalit.null.co.in/ /;
server_name swachalit.null.community;
proxy_redirect http://swachalit.null.community/ /;

client_body_timeout 300;
client_max_body_size 10M;
Expand Down