{"id":18814295,"url":"https://github.com/cubesystems/nginx-gomplate","last_synced_at":"2026-01-13T02:30:16.922Z","repository":{"id":213566236,"uuid":"734411116","full_name":"cubesystems/nginx-gomplate","owner":"cubesystems","description":"Gomplate support for nginx-unprivileged docker image","archived":false,"fork":false,"pushed_at":"2023-12-21T16:19:26.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-30T00:47:24.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cubesystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-21T16:00:05.000Z","updated_at":"2023-12-21T16:04:55.000Z","dependencies_parsed_at":"2023-12-21T19:06:15.796Z","dependency_job_id":"ffba85ea-b568-41cf-951f-a608326e8dfb","html_url":"https://github.com/cubesystems/nginx-gomplate","commit_stats":null,"previous_names":["cubesystems/nginx-gomplate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubesystems%2Fnginx-gomplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubesystems%2Fnginx-gomplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubesystems%2Fnginx-gomplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubesystems%2Fnginx-gomplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cubesystems","download_url":"https://codeload.github.com/cubesystems/nginx-gomplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239750097,"owners_count":19690564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T23:40:04.688Z","updated_at":"2026-01-13T02:30:16.873Z","avatar_url":"https://github.com/cubesystems.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gomplate support for nginx-unprivileged docker image\n\nAdd-on script to add `gomplate` template engine support to nginx-unprivileged Docker image\n\n## Example dockerfile\nHere's an example Dockerfile that demonstrates how to add Gomplate support to the nginx-unprivileged image:\n\n```\nFROM nginxinc/nginx-unprivileged:alpine\n\nUSER root\n\nRUN apk add --no-cache gomplate \u0026\u0026 \\\n  curl https://raw.githubusercontent.com/cubesystems/nginx-gomplate/master/21-gomplate-on-templates.sh \\\n  -o /docker-entrypoint.d/21-gomplate-on-templates.sh \u0026\u0026 \\\n  chmod a+x /docker-entrypoint.d/21-gomplate-on-templates.sh\n\nUSER nginx\n\n# Copy your custom template files with .gomplate prefix (Ex. docker/nginx-templates/default.conf.gomplate to replace default vhost)\nCOPY docker/nginx-templates/ /etc/nginx/templates/\n```\n\n## Sample Helm template for nginx deployment\n```\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: nginx\nspec:\n  replicas: 1\n  minReadySeconds: 5\n  strategy:\n    type: RollingUpdate\n    rollingUpdate:\n      maxSurge: 1\n      maxUnavailable: 0\n  selector:\n    matchLabels:\n      app: {{ .Release.Name }}\n      tier: nginx\n  template:\n    metadata:\n      name: nginx\n      labels:\n        app: {{ .Release.Name }}\n        tier: nginx\n        appVersion: {{ .Values.appVersion | quote }}\n    spec:\n      containers:\n        - name: nginx\n          imagePullPolicy: {{ .Values.image.pullPolicy }}\n          image: \"{{ .Values.image.repository }}:{{ .Values.image.tag }}\"\n          securityContext:\n            allowPrivilegeEscalation: false\n            capabilities:\n              drop:\n                - ALL\n            readOnlyRootFilesystem: true\n            runAsNonRoot: true\n            runAsUser: 101 # nginx uid\n            runAsGroup: 101 # nginx gid\n{{- if .Values.deployments.nginx.envFrom }}\n          envFrom: {{- toYaml .Values.deployments.nginx.envFrom | nindent 12 }}\n{{- end }}\n          ports:\n            - containerPort: 8080\n          readinessProbe:\n            httpGet:\n              path: /ping\n              port: 8080\n            initialDelaySeconds: 5\n            periodSeconds: 5\n            successThreshold: 1\n          volumeMounts:\n            - mountPath: /tmp\n              name: tmp\n            - mountPath: /etc/nginx/conf.d\n              name: nginx-conf\n      imagePullSecrets:\n        - name: {{ .Values.image.registrySecretName }}\n      volumes:\n        - name: tmp\n          emptyDir: {}\n        - name: nginx-conf\n          emptyDir: {}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcubesystems%2Fnginx-gomplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcubesystems%2Fnginx-gomplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcubesystems%2Fnginx-gomplate/lists"}