Compare commits
2 Commits
0ee8179093
...
e06c24ea21
| Author | SHA1 | Date |
|---|---|---|
|
|
e06c24ea21 | |
|
|
5a8782062d |
|
|
@ -3,7 +3,7 @@
|
||||||
import { useState } from "react"
|
import { useState } from "react"
|
||||||
import { Button } from "@/components/ui/button"
|
import { Button } from "@/components/ui/button"
|
||||||
|
|
||||||
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/api/subscribe"
|
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/subscribe"
|
||||||
const LIST_UUID = "0c541da4-3f04-4e72-978a-5a328b43c995" // Alltornet list
|
const LIST_UUID = "0c541da4-3f04-4e72-978a-5a328b43c995" // Alltornet list
|
||||||
|
|
||||||
export function NewsletterSignup() {
|
export function NewsletterSignup() {
|
||||||
|
|
@ -19,7 +19,7 @@ export function NewsletterSignup() {
|
||||||
setStatus("loading")
|
setStatus("loading")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${NEWSLETTER_API}/subscribe`, {
|
const response = await fetch(NEWSLETTER_API, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
services:
|
||||||
|
alltornet-prod:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
image: alltornet-prod:latest
|
||||||
|
container_name: alltornet-prod
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- traefik-public
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.alltornet.rule=Host(`alltor.net`) || Host(`www.alltor.net`)"
|
||||||
|
- "traefik.http.routers.alltornet.entrypoints=web"
|
||||||
|
- "traefik.http.services.alltornet.loadbalancer.server.port=80"
|
||||||
|
- "traefik.docker.network=traefik-public"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik-public:
|
||||||
|
external: true
|
||||||
Loading…
Reference in New Issue