-
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.
- Loading branch information
Showing
4 changed files
with
93 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Default settings. Alternative options are commented out. | ||
|
||
# Note: When using TLS, we will always send the HSTS header to force clients to only | ||
# use https urls. | ||
[http] | ||
port = 8443 # also supports 0 to mean random | ||
|
||
# Settings related to configuring TLS certificates. In most cases, the "acme" type is | ||
# the simplest to set up. | ||
[http.tls] | ||
type = "acme" # publicly visible port MUST be 443, otherwise the challenge fails | ||
domains = ["servers-us-east-1.socialvr.net"] # You must fill this in with your public domain name(s). | ||
# domains = ["socialvr.net", "socialvr.net:1337", "10.11.12.13"] | ||
is_prod = false # we are using LetsEncrypt's main, production directory. | ||
email = "" # optional: you can fill in your email address here | ||
|
||
# [http.tls] | ||
# type = "disable" # disables TLS and everything will use HTTP instead. | ||
|
||
# [http.tls] | ||
# type = "self_signed" | ||
# domains = ["socialvr.net"] | ||
|
||
# [http.tls] | ||
# type = "file" | ||
# cert_path = "path/to/cert.pem" | ||
# private_key_path = "another/path/key.pem" | ||
|
||
[third_party.google] | ||
# To get the client id, follow the instructions at: | ||
# https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid#get_your_google_api_client_id | ||
oauth2_client_id = "" | ||
|
||
[cache] | ||
# By default, we use the cache directory on your machine (from | ||
# `$XDG_CACHE_HOME/nexus_identity_server` or `~/.config/cache/nexus_identity_server` | ||
# dir = "path/to/my/cache/dir" | ||
|
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ inputs | ||
, hostname | ||
, username | ||
, lib | ||
, config | ||
, pkgs | ||
, ... | ||
}: { | ||
# You can import other NixOS modules here | ||
imports = [ ]; | ||
|
||
systemd.services.identity-server = { | ||
description = "NexusSocial Identity Server"; | ||
after = [ "podman.service" ]; | ||
requires = [ "podman.service" ]; | ||
serviceConfig = { | ||
TimeoutStartSec = 0; | ||
Restart = "always"; | ||
ExecStartPre = [ | ||
"-/usr/bin/env podman stop %n" | ||
"-/usr/bin/env podman rm %n" | ||
"-/usr/bin/env podman pull ghcr.io/nexussocial/identity-server:latest" | ||
]; | ||
ExecStart = "/usr/bin/env podman run --rm --name %n identity-server"; | ||
}; | ||
wantedBy = [ "multi-user.target" ]; | ||
}; | ||
|
||
} |
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