@@ -94,7 +94,10 @@ var installCmd = &cobra.Command{
94
94
// Step 3: Configure the intrusion detection system
95
95
network .ConfigureIntrusionDetection ()
96
96
97
- // Setp 4: Create relay user
97
+ // Step 4: Configure Nginx
98
+ network .ConfigureNginx ()
99
+
100
+ // Setp 5: Create relay user
98
101
spinner , _ := pterm .DefaultSpinner .Start (fmt .Sprintf ("Checking if '%s' user exists..." , relays .User ))
99
102
if ! users .UserExists (relays .User ) {
100
103
spinner .UpdateText (fmt .Sprintf ("Creating '%s' user..." , relays .User ))
@@ -105,118 +108,118 @@ var installCmd = &cobra.Command{
105
108
}
106
109
107
110
if selectedRelayOption == khatru_pyramid .RelayName {
108
- // Step 5 : Configure Nginx for HTTP
111
+ // Step 6 : Configure Nginx for HTTP
109
112
khatru_pyramid .ConfigureNginxHttp (relayDomain )
110
113
111
- // Step 6 : Get SSL/TLS certificates
114
+ // Step 7 : Get SSL/TLS certificates
112
115
httpsEnabled := network .GetCertificates (relayDomain )
113
116
if httpsEnabled {
114
- // Step 7 : Configure Nginx for HTTPS
117
+ // Step 8 : Configure Nginx for HTTPS
115
118
khatru_pyramid .ConfigureNginxHttps (relayDomain )
116
119
}
117
120
118
- // Step 8 : Download and install the relay binary
121
+ // Step 9 : Download and install the relay binary
119
122
khatru_pyramid .InstallRelayBinary (pubKey )
120
123
121
- // Step 9 : Set up the relay service
124
+ // Step 10 : Set up the relay service
122
125
khatru_pyramid .SetupRelayService (relayDomain , pubKey , relayContact )
123
126
124
- // Step 10 : Show success messages
127
+ // Step 11 : Show success messages
125
128
khatru_pyramid .SuccessMessages (relayDomain , httpsEnabled )
126
129
} else if selectedRelayOption == nostr_rs_relay .RelayName {
127
- // Step 5 : Configure Nginx for HTTP
130
+ // Step 6 : Configure Nginx for HTTP
128
131
nostr_rs_relay .ConfigureNginxHttp (relayDomain )
129
132
130
- // Step 6 : Get SSL/TLS certificates
133
+ // Step 7 : Get SSL/TLS certificates
131
134
httpsEnabled := network .GetCertificates (relayDomain )
132
135
if httpsEnabled {
133
- // Step 7 : Configure Nginx for HTTPS
136
+ // Step 8 : Configure Nginx for HTTPS
134
137
nostr_rs_relay .ConfigureNginxHttps (relayDomain )
135
138
}
136
139
137
- // Step 8 : Download and install the relay binary
140
+ // Step 9 : Download and install the relay binary
138
141
nostr_rs_relay .InstallRelayBinary ()
139
142
140
- // Step 9 : Set up the relay service
143
+ // Step 10 : Set up the relay service
141
144
nostr_rs_relay .SetupRelayService (relayDomain , pubKey , relayContact , httpsEnabled )
142
145
143
- // Step 10 : Show success messages
146
+ // Step 11 : Show success messages
144
147
nostr_rs_relay .SuccessMessages (relayDomain , httpsEnabled )
145
148
} else if selectedRelayOption == strfry .RelayName {
146
- // Step 5 : Configure Nginx for HTTP
149
+ // Step 6 : Configure Nginx for HTTP
147
150
strfry .ConfigureNginxHttp (relayDomain )
148
151
149
- // Step 6 : Get SSL/TLS certificates
152
+ // Step 7 : Get SSL/TLS certificates
150
153
httpsEnabled := network .GetCertificates (relayDomain )
151
154
if httpsEnabled {
152
- // Step 7 : Configure Nginx for HTTPS
155
+ // Step 8 : Configure Nginx for HTTPS
153
156
strfry .ConfigureNginxHttps (relayDomain )
154
157
}
155
158
156
- // Step 8 : Download and install the relay binary
159
+ // Step 9 : Download and install the relay binary
157
160
strfry .InstallRelayBinary ()
158
161
159
- // Step 9 : Set up the relay service
162
+ // Step 10 : Set up the relay service
160
163
strfry .SetupRelayService (relayDomain , relayContact )
161
164
162
- // Step 10 : Show success messages
165
+ // Step 11 : Show success messages
163
166
strfry .SuccessMessages (relayDomain , httpsEnabled )
164
167
} else if selectedRelayOption == wot_relay .RelayName {
165
- // Step 5 : Configure Nginx for HTTP
168
+ // Step 6 : Configure Nginx for HTTP
166
169
wot_relay .ConfigureNginxHttp (relayDomain )
167
170
168
- // Step 6 : Get SSL/TLS certificates
171
+ // Step 7 : Get SSL/TLS certificates
169
172
httpsEnabled := network .GetCertificates (relayDomain )
170
173
if httpsEnabled {
171
- // Step 7 : Configure Nginx for HTTPS
174
+ // Step 8 : Configure Nginx for HTTPS
172
175
wot_relay .ConfigureNginxHttps (relayDomain )
173
176
}
174
177
175
- // Step 8 : Download and install the relay binary
178
+ // Step 9 : Download and install the relay binary
176
179
wot_relay .InstallRelayBinary (pubKey )
177
180
178
- // Step 9 : Set up the relay service
181
+ // Step 10 : Set up the relay service
179
182
wot_relay .SetupRelayService (relayDomain , pubKey , relayContact , httpsEnabled )
180
183
181
- // Step 10 : Show success messages
184
+ // Step 11 : Show success messages
182
185
wot_relay .SuccessMessages (relayDomain , httpsEnabled )
183
186
} else if selectedRelayOption == khatru29 .RelayName {
184
- // Step 5 : Configure Nginx for HTTP
187
+ // Step 6 : Configure Nginx for HTTP
185
188
khatru29 .ConfigureNginxHttp (relayDomain )
186
189
187
- // Step 6 : Get SSL/TLS certificates
190
+ // Step 7 : Get SSL/TLS certificates
188
191
httpsEnabled := network .GetCertificates (relayDomain )
189
192
if httpsEnabled {
190
- // Step 7 : Configure Nginx for HTTPS
193
+ // Step 8 : Configure Nginx for HTTPS
191
194
khatru29 .ConfigureNginxHttps (relayDomain )
192
195
}
193
196
194
- // Step 8 : Download and install the relay binary
197
+ // Step 9 : Download and install the relay binary
195
198
khatru29 .InstallRelayBinary ()
196
199
197
- // Step 9 : Set up the relay service
200
+ // Step 10 : Set up the relay service
198
201
khatru29 .SetupRelayService (relayDomain , privKey , relayContact )
199
202
200
- // Step 10 : Show success messages
203
+ // Step 11 : Show success messages
201
204
khatru29 .SuccessMessages (relayDomain , httpsEnabled )
202
205
} else if selectedRelayOption == strfry29 .RelayName {
203
- // Step 5 : Configure Nginx for HTTP
206
+ // Step 6 : Configure Nginx for HTTP
204
207
strfry29 .ConfigureNginxHttp (relayDomain )
205
208
206
- // Step 6 : Get SSL/TLS certificates
209
+ // Step 7 : Get SSL/TLS certificates
207
210
httpsEnabled := network .GetCertificates (relayDomain )
208
211
if httpsEnabled {
209
- // Step 7 : Configure Nginx for HTTPS
212
+ // Step 8 : Configure Nginx for HTTPS
210
213
strfry29 .ConfigureNginxHttps (relayDomain )
211
214
}
212
215
213
- // Step 8 : Download and install the relay binary
216
+ // Step 9 : Download and install the relay binary
214
217
strfry29 .InstallRelayBinary ()
215
218
216
- // Step 9 : Set up the relay service
219
+ // Step 10 : Set up the relay service
217
220
strfry29 .SetupRelayService (relayDomain , privKey , relayContact )
218
221
219
- // Step 10 : Show success messages
222
+ // Step 11 : Show success messages
220
223
strfry29 .SuccessMessages (relayDomain , httpsEnabled )
221
224
}
222
225
0 commit comments