-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from irfanhakim-as/update
General update
- Loading branch information
Showing
91 changed files
with
5,515 additions
and
1,192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,17 @@ apiVersion: v2 | |
name: clog | ||
description: Creative blog, Career blog, Coin blog, you name it. | ||
type: application | ||
version: 0.1.10 | ||
version: 0.2.0 | ||
appVersion: "0.0.1-stable" | ||
keywords: | ||
- clog | ||
home: https://github.com/irfanhakim-as/clog | ||
icon: https://irfanhakim-as.github.io/charts/logos/clog.png | ||
- "clog" | ||
- "blog" | ||
home: "https://github.com/irfanhakim-as/clog" | ||
icon: "https://irfanhakim-as.github.io/charts/logos/clog.png" | ||
sources: | ||
- https://github.com/irfanhakim-as/clog | ||
- https://github.com/irfanhakim-as/charts | ||
- "https://github.com/irfanhakim-as/clog" | ||
- "https://github.com/irfanhakim-as/charts" | ||
maintainers: | ||
- name: Irfan Hakim | ||
email: [email protected] | ||
url: https://github.com/irfanhakim-as | ||
- name: "Irfan Hakim" | ||
email: "[email protected]" | ||
url: "https://github.com/irfanhakim-as" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
clog is now installed and configured. | ||
Clog is now installed and configured for {{ .Release.Name | toString }}. | ||
|
||
See the values.yaml file of this chart for more configuration options. | ||
|
||
Please refer to the official documentation for more information on how to use Clog. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,37 @@ Create the name of the service account to use | |
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Apache site-config.conf template | ||
*/}} | ||
{{- define "clog.site-config-conf" -}} | ||
<VirtualHost *:80> | ||
ServerName DOMAIN:443 | ||
UseCanonicalName On | ||
ServerAdmin [email protected] | ||
DocumentRoot /clog | ||
WSGIScriptAlias / /clog/clog/wsgi.py | ||
WSGIDaemonProcess DOMAIN python-path=/clog | ||
WSGIProcessGroup DOMAIN | ||
|
||
<Directory /clog/clog> | ||
<Files wsgi.py> | ||
Require all granted | ||
</Files> | ||
</Directory> | ||
|
||
Alias /static /static | ||
<Directory /static> | ||
Require all granted | ||
</Directory> | ||
|
||
Alias /media /clog/media | ||
<Directory /clog/media> | ||
Require all granted | ||
</Directory> | ||
|
||
ErrorLog /var/log/apache2/apache.error.log | ||
CustomLog /var/log/apache2/apache.access.log combined | ||
</VirtualHost> | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,28 @@ | ||
{{- $name := .Values.clog.name | default "Clog" | toString | quote }} | ||
{{- $debug := .Values.clog.debug | default "false" | toString | quote }} | ||
{{- $domain := .Values.clog.cloudflared.domain | default "localhost" | toString }} | ||
{{- $cloudflared := .Values.clog.cloudflared.enabled }} | ||
{{- $ngrok := .Values.clog.ngrok.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-clog-cm | ||
labels: | ||
{{- include "clog.labels" . | nindent 4 }} | ||
data: | ||
SITE_NAME: "{{ .Values.clog.site_name | toString }}" | ||
DEBUG: "{{ .Values.clog.debug | toString }}" | ||
NGROK: "{{ .Values.clog.ngrok.enabled | toString }}" | ||
{{- if .Values.clog.cloudflared.enabled }} | ||
DOMAIN: "{{ $domain }}" | ||
SITE_NAME: {{ $name }} | ||
DEBUG: {{ $debug }} | ||
NGROK: {{ $ngrok | toString | quote }} | ||
{{- if $cloudflared }} | ||
DOMAIN: {{ $domain | quote }} | ||
{{- end }} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-clog-postgres-cm | ||
labels: | ||
{{- include "clog.labels" . | nindent 4 }} | ||
data: | ||
DB_HOST: "{{ .Values.db.host | toString }}" | ||
DB_NAME: "{{ .Values.db.name | toString }}" | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-clog-site-config | ||
labels: | ||
{{- include "clog.labels" . | nindent 4 }} | ||
data: | ||
site-config.conf: |- | ||
<VirtualHost *:80> | ||
{{ "ServerName $domain:443" | replace "$domain" $domain }} | ||
UseCanonicalName On | ||
ServerAdmin [email protected] | ||
DocumentRoot /clog | ||
WSGIScriptAlias / /clog/clog/wsgi.py | ||
{{ "WSGIDaemonProcess $domain python-path=/clog" | replace "$domain" $domain }} | ||
{{ "WSGIProcessGroup $domain" | replace "$domain" $domain }} | ||
<Directory /clog/clog> | ||
<Files wsgi.py> | ||
Require all granted | ||
</Files> | ||
</Directory> | ||
Alias /static /static | ||
<Directory /static> | ||
Require all granted | ||
</Directory> | ||
Alias /media /clog/media | ||
<Directory /clog/media> | ||
Require all granted | ||
</Directory> | ||
ErrorLog /var/log/apache2/apache.error.log | ||
CustomLog /var/log/apache2/apache.access.log combined | ||
</VirtualHost> | ||
{{- include "clog.site-config-conf" . | replace "DOMAIN" $domain | nindent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.